[GH-ISSUE #3233] firejail file fails due to linker unable to find libseccomp.so.2 #2029

Closed
opened 2026-05-05 08:42:11 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Thermi on GitHub (Feb 21, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3233

libseccomp.so.2 exists though:

ls -l /usr/lib/libseccomp.so.2
lrwxrwxrwx 1 root root 19 13. Nov 16:52 /usr/lib/libseccomp.so.2 -> libseccomp.so.2.4.1
firejail file details.img 
file: error while loading shared libraries: libseccomp.so.2: cannot open shared object file: No such file or directory
Originally created by @Thermi on GitHub (Feb 21, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3233 libseccomp.so.2 exists though: ``` ls -l /usr/lib/libseccomp.so.2 lrwxrwxrwx 1 root root 19 13. Nov 16:52 /usr/lib/libseccomp.so.2 -> libseccomp.so.2.4.1 ``` ``` firejail file details.img file: error while loading shared libraries: libseccomp.so.2: cannot open shared object file: No such file or directory ```
Author
Owner

@rusty-snake commented on GitHub (Feb 21, 2020):

libseccomp.so.2 exists though:

But not in the sandbox due to private-lib.

Can you try with firejail '--private-lib=libseccomp.so.*' file whatever.

<!-- gh-comment-id:589835659 --> @rusty-snake commented on GitHub (Feb 21, 2020): > libseccomp.so.2 exists though: But not in the sandbox due to `private-lib`. Can you try with `firejail '--private-lib=libseccomp.so.*' file whatever`.
Author
Owner

@ghost commented on GitHub (Feb 21, 2020):

IMHO we should drop private-etc and private-lib from the file profile. It causes a lot of lookups to fail like this one, which doesn't help makepkg on Arch for instance.

<!-- gh-comment-id:589871765 --> @ghost commented on GitHub (Feb 21, 2020): IMHO we should drop `private-etc` and `private-lib` from the file profile. It causes a lot of lookups to fail like this one, which doesn't help makepkg on Arch for instance.
Author
Owner

@rusty-snake commented on GitHub (Feb 22, 2020):

--- a/etc/file.profile
+++ b/etc/file.profile
@@ -38,8 +38,8 @@ x11 none
 #private-bin bzip2,file,gzip,lrzip,lz4,lzip,xz,zstd
 private-cache
 private-dev
-private-etc alternatives,localtime,magic,magic.mgc
-private-lib file,libarchive.so.*,libfakeroot,libmagic.so.*
+#private-etc alternatives,localtime,magic,magic.mgc
+#private-lib file,libarchive.so.*,libfakeroot,libmagic.so.*,libseccomp.so.*
 
 memory-deny-write-execute
 read-only ${HOME}
<!-- gh-comment-id:589928997 --> @rusty-snake commented on GitHub (Feb 22, 2020): ```diff --- a/etc/file.profile +++ b/etc/file.profile @@ -38,8 +38,8 @@ x11 none #private-bin bzip2,file,gzip,lrzip,lz4,lzip,xz,zstd private-cache private-dev -private-etc alternatives,localtime,magic,magic.mgc -private-lib file,libarchive.so.*,libfakeroot,libmagic.so.* +#private-etc alternatives,localtime,magic,magic.mgc +#private-lib file,libarchive.so.*,libfakeroot,libmagic.so.*,libseccomp.so.* memory-deny-write-execute read-only ${HOME} ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2029
No description provided.