mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4589] Can't find libstdc++.so.6 due to private-etc and private-lib in aria2c.profile #2714
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2714
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crocket on GitHub (Oct 5, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4589
Description
This aria2c.local file works around the issue
private-lib eliminates /usr/lib/gcc by mounting tmpfs on /usr/lib.
/etc/ld.so.cache is necessary for finding libstdc++.so.6 in /usr/lib/gcc.
Environment
firejail --version).@rusty-snake commented on GitHub (Oct 5, 2021):
We have
private-lib …,gcc/*/*/libstdc++.so.*,…already in other profiles, maybe we should just hardcode it?to sum up:
alternatives,ld.so.cache,ld.so.preloadnet none:ca-certificates,crypto-policies,nsswitch.conf,pki,resolv.conf,sslcrypto-policies,pki,sslcan be future restricted to use subdirs@crocket commented on GitHub (Oct 5, 2021):
Perhaps, you could put those in something like /etc/firejail/globals.inc and put
include globals.incin every profile in /etc/firejail?@rusty-snake commented on GitHub (Oct 5, 2021):
Nope, because not every profiles uses
private-etc. I solved this in my overrides withinclude private-etc:net.inc. Anyway we need private-etc groups like for seccomp (private-etc @network,fonts,...). cloudn't find the issue for it@crocket commented on GitHub (Oct 5, 2021):
Perhaps, something like this in /etc/firejail/globals.inc can work.
@crocket commented on GitHub (Oct 29, 2021):
I don't think testing profiles is the definite solution because people are going to have private profiles that are not subject to tests.
People will still keep submitting profiles without required files, and you will have to explain every time. That's why it's not the definite solution.
The solution would eradicate the possibility of a wrong profile. Perhaps, private-etc should implicitly add required files, and man page should explain private-etc automatically adds required files.