[GH-ISSUE #6137] private-etc exceeds 500MB limit due to large files symlinked in /etc/alternatives #3196

Closed
opened 2026-05-05 09:48:57 -06:00 by gitea-mirror · 4 comments
Owner

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.

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.
gitea-mirror 2026-05-05 09:48:57 -06:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@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.

private-etc copies both of them, that's 300MB... so the 500MB limit is often hit.

So there are 200MB left. What else is in /etc that takes so much space?

<!-- gh-comment-id:1867670642 --> @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. > private-etc copies both of them, that's 300MB... so the 500MB limit is often hit. So there are 200MB left. What else is in /etc that takes so much space?
Author
Owner

@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/ 375MB

Fedora has update-alternatives?
you can check your's with: du -hL /etc/alternatives/* | grep M for anything weird.

At the very least, that folder should be treated in a special way. Does it really need to copy the symlinked files?

<!-- gh-comment-id:1867835494 --> @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/` 375MB Fedora has update-alternatives? you can check your's with: `du -hL /etc/alternatives/* | grep M` for anything weird. At the very least, that folder should be treated in a special way. Does it really need to copy the symlinked files?
Author
Owner

@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

<!-- gh-comment-id:1867843002 --> @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
Author
Owner

@ghost commented on GitHub (Dec 23, 2023):

yea ok, it seams a duplicate of #5378

<!-- gh-comment-id:1868176596 --> @ghost commented on GitHub (Dec 23, 2023): yea ok, it seams a duplicate of #5378
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#3196
No description provided.