-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch fails to run in Artix Linux #4039
Comments
What shows |
What's in it? |
Same error with a relatively recent firejail-git version, also on Artix.
It has been fixed by #4000 on master: So put the following on patch.local:
Or, alternatively, use firejail-git from the AUR until the next release. |
$ ls -l /usr/lib*/libdl*
-rwxr-xr-x 1 dhcpcd dhcpcd 18K Feb 13 17:02 /usr/lib32/libdl-2.33.so
-rw-r--r-- 1 dhcpcd dhcpcd 14K Feb 13 17:02 /usr/lib32/libdl.a
lrwxrwxrwx 1 root root 10 Feb 13 17:02 /usr/lib32/libdl.so -> libdl.so.2
lrwxrwxrwx 1 root root 13 Feb 13 17:02 /usr/lib32/libdl.so.2 -> libdl-2.33.so
-rwxr-xr-x 1 dhcpcd dhcpcd 23K Feb 13 17:02 /usr/lib64/libdl-2.33.so
-rw-r--r-- 1 dhcpcd dhcpcd 15K Feb 13 17:02 /usr/lib64/libdl.a
lrwxrwxrwx 1 root root 10 Feb 13 17:02 /usr/lib64/libdl.so -> libdl.so.2
lrwxrwxrwx 1 root root 13 Feb 13 17:02 /usr/lib64/libdl.so.2 -> libdl-2.33.so
-rwxr-xr-x 1 dhcpcd dhcpcd 23K Feb 13 17:02 /usr/lib/libdl-2.33.so
-rw-r--r-- 1 dhcpcd dhcpcd 15K Feb 13 17:02 /usr/lib/libdl.a
lrwxrwxrwx 1 root root 10 Feb 13 17:02 /usr/lib/libdl.so -> libdl.so.2
lrwxrwxrwx 1 root root 13 Feb 13 17:02 /usr/lib/libdl.so.2 -> libdl-2.33.so Also, adding in 'ignore private-lib' worked, which is weird, because I copied the Master branch patch.profile into my etc directory and it didn't work. But it is working now, so thanks. Edit: Fixed code block formatting. |
Apologies; I wanted to reply quickly and ended up speaking assuming too much It fails even with the following on patch.local: private-lib libd*,libfakeroot
ignore private-lib So it's also likely not due to the file names (though it could be a globbing
I have the same output and it does not seem quite right. Why are these $ pacman -Qo /usr/lib*/libdl* | sort
/usr/lib/libdl-2.33.so is owned by glibc 2.33-4
/usr/lib/libdl-2.33.so is owned by glibc 2.33-4
/usr/lib/libdl.a is owned by glibc 2.33-4
/usr/lib/libdl.a is owned by glibc 2.33-4
/usr/lib/libdl.so is owned by glibc 2.33-4
/usr/lib/libdl.so is owned by glibc 2.33-4
/usr/lib/libdl.so.2 is owned by glibc 2.33-4
/usr/lib/libdl.so.2 is owned by glibc 2.33-4
/usr/lib32/libdl-2.33.so is owned by lib32-glibc 2.33-4
/usr/lib32/libdl.a is owned by lib32-glibc 2.33-4
/usr/lib32/libdl.so is owned by lib32-glibc 2.33-4
/usr/lib32/libdl.so.2 is owned by lib32-glibc 2.33-4 dhcpcd does not even provide any libraries outside of its own directory: $ pacman -Q dhcpcd
dhcpcd 9.4.0-1
$ pacman -Qlq dhcpcd
/etc/
/etc/dhcpcd.conf
/usr/
/usr/bin/
/usr/bin/dhcpcd
/usr/lib/
/usr/lib/dhcpcd/
/usr/lib/dhcpcd/dev/
/usr/lib/dhcpcd/dev/udev.so
/usr/lib/dhcpcd/dhcpcd-hooks/
/usr/lib/dhcpcd/dhcpcd-hooks/01-test
/usr/lib/dhcpcd/dhcpcd-hooks/20-resolv.conf
/usr/lib/dhcpcd/dhcpcd-hooks/30-hostname
/usr/lib/dhcpcd/dhcpcd-run-hooks
/usr/lib/sysusers.d/
/usr/lib/sysusers.d/dhcpcd.conf
/usr/lib/tmpfiles.d/
/usr/lib/tmpfiles.d/dhcpcd.conf
/usr/share/
/usr/share/dhcpcd/
/usr/share/dhcpcd/hooks/
/usr/share/dhcpcd/hooks/10-wpa_supplicant
/usr/share/dhcpcd/hooks/15-timezone
/usr/share/dhcpcd/hooks/29-lookup-hostname
/usr/share/licenses/
/usr/share/licenses/dhcpcd/
/usr/share/licenses/dhcpcd/LICENSE
/usr/share/man/
/usr/share/man/man5/
/usr/share/man/man5/dhcpcd.conf.5.gz
/usr/share/man/man8/
/usr/share/man/man8/dhcpcd-run-hooks.8.gz
/usr/share/man/man8/dhcpcd.8.gz
/var/
/var/lib/
/var/lib/dhcpcd I think that the problem might be packaging-related. Will check later. |
Sorry for the delay, but I still have some patches that I want to send Currently I just run Would be nice if firecfg supported a
To be clear, I meant issues with the dhcpcd package. By the way, I stopped using dhcpcd, as it would happily and knowingly let the
Seems plausible; thanks for the link. |
And here's an other link for you: #2097 😃 |
Write clear, concise and in textual form.
Bug and expected behavior
Patch always fails to run, complains about missing libdl.so.2 library (which is installed and in /usr/lib).
I expected the patch command to work properly.
No profile and disabling firejail
firejail --noprofile /path/to/program
in a terminal?Patch works properly, no complaint about missing library.
which <program>
orfirejail --list
while the sandbox is running)?Patch works correctly, no complaint about missing library.
Reproduce
Steps to reproduce the behavior:
firejail patch
/usr/sbin/patch: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
Environment
lsb_release -a
,screenfetch
orcat /etc/os-release
)Artix Linux (fork of Arch), up-to-date
firejail --version
) exclusive or used git commit (git rev-parse HEAD
)Firejail version 0.9.64.4
Additional context
Other context about the problem like related errors to understand the problem.
Patch will also start to work if I comment out the 'private-lib' line in the config.
Checklist
Trying the master-branch patch.profile does not fix the issue either.
https://github.com/netblue30/firejail/issues/1139
)I am using the upstream patch.profile
--profile=PROFILENAME
is used to set the right profile.It is not an appimage.
Used
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM
to get english error-messages.I'm aware of
browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.debug output
The text was updated successfully, but these errors were encountered: