mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #361] PulseAudio-related hangs under 'firejail --overlay-tmpfs' sandbox #258
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#258
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 @laniakea64 on GitHub (Mar 9, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/361
OS: Lubuntu 14.04
Firejail 0.9.38
Trying to run SeaMonkey (+ freshplayerplugin) in a firejail sandbox w/ --overlay-tmpfs, but anything that tries to play audio through pulseaudio hangs SeaMonkey one way or another, and this is output to the Terminal:
Failed to create secure directory (/run/user/[MYUID]/pulse): No such file or directory(where [MYUID] is the numeric uid of the logged-in user)
In a new SeaMonkey profile, additionally this is spammed to the Terminal:
Navigating to
file:///run/shows there is not even a user/ directory there 😕(For testing, I'm just loading a .webm video containing audio, in the sandboxed SeaMonkey. The hang in this case appears to occur after quitting SeaMonkey but before SeaMonkey actually exits.)
Saw the known issues for pulseaudio 7.0 and up, but
and the symptoms don't seem to match anything I've read on this issue tracker...
Running firejail without --overlay-tmpfs, and pulseaudio works fine (and /run/user is present). But --overlay-tmpfs is the whole point I'm trying to use firejail here.
Tried whitelisting /run/user to no effect.
So how to make --overlay-tmpfs and pulseaudio play nice? Or is this a bug?
(Despite the fact my kernel - which is the standard Ubuntu kernel for 14.04 - has overlayfs support, firejail refuses to run with --overlay option just because the kernel isn't version 3.18 or up... so can't test that, sorry.)
@netblue30 commented on GitHub (Mar 10, 2016):
I was able to reproduce the problem on a Debian 8 with a 4.3 kernel. I put a fix it. Somehow, /run needed to be re-mounted in the sandbox - PulseAudio socket is under /run/user.
The same /run directory problem as PulseAudio.
There are some subtle differences between Ubuntu's overlayfs in 3.13 and the official overlayfs in 3.18, so I ended up with only support for Ubuntu kernel.
Thanks for the bug!
@laniakea64 commented on GitHub (Mar 10, 2016):
Wow that was fast, thanks! 😃
At
3fde90a320 (diff-2101407323981df3cabf3f8c67953d03R884), was "/dev" intended to be "/run"?@laniakea64 commented on GitHub (Mar 10, 2016):
(FWIW I've just built the source at
3fde90a320and can confirm this issue is fixed. Thanks again)@netblue30 commented on GitHub (Mar 10, 2016):
I am still fighting overlayfs, there is more to come.
https://github.com/netblue30/firejail/issues/263