mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6137] private-etc exceeds 500MB limit due to large files symlinked in /etc/alternatives #3196
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#3196
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 @ghost on GitHub (Dec 22, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6137
I'm on Debian, i installed a soundfont (fluid-soundfont-gm), that is 150MB. That soundfont uses the update-alternatives system, so it shows up in the etc as a symlink, for compatibility reasons it's linked twice. private-etc copies both of them, that's 300MB... so the 500MB limit is often hit.
Then it seams that it simply ignores what ever exceeds the limit but still runs the app, so the end result is random chaos for any profile that uses private-etc.
At the very least, firejail should not try to run if it loads part of what it was expected to load.
@rusty-snake commented on GitHub (Dec 22, 2023):
To me it is not clear what the actionable part is here. Can you reformulate it or give examples.
So there are 200MB left. What else is in /etc that takes so much space?
@ghost commented on GitHub (Dec 22, 2023):
things started breaking in a chaotic manner and it wasn't obvious that etc was "filled up".... with symlinks.
also electron apps build with electron builder, use update alternative and they are 166MB each because they are statically linked to death. Yes, that's just the executable, i'm discovering this now. Then they are a few normal fonts at 7MB and liblapack.so at 7MB, the rest are smaller. So you only need 3 electron apps build with electron builder to brake firejail.
WITHOUT the soundfonts...
du -shL /etc/alternatives/375MBFedora has update-alternatives?
you can check your's with:
du -hL /etc/alternatives/* | grep Mfor anything weird.At the very least, that folder should be treated in a special way. Does it really need to copy the symlinked files?
@rusty-snake commented on GitHub (Dec 22, 2023):
Note that there was recently a change that might fixes this in the next release. https://github.com/netblue30/firejail/pull/5957
@ghost commented on GitHub (Dec 23, 2023):
yea ok, it seams a duplicate of #5378