mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5080] Ephemeral runtime (--private) breaks XDG_RUNTIME_DIR within user home. #2870
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#2870
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 @benaryorg on GitHub (Mar 28, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5080
Description
Using
--privatefor an ephemeral runtime breaks pulseaudio for installations where XDG_RUNTIME_DIR resides within the users' home directory (e.g. ~/.local/run).Steps to Reproduce
Steps to reproduce the behavior
Expected behavior
I would expect
--whitelistto either work even when--privateis used, or to have any equivalent mechanism of getting a file or directory within such an environment.Note that specifically in this use-case the socket in question needs to work, so something that copies files may not work as expected.
Actual behavior
The file specified using
whitelistwas not present at all, and no arguments seem to be present that allow to add it to the sandbox.Behavior without a profile
There is no difference between profiles as far as I can see.
Additional context
-
Environment
Gentoo:
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
env LC_ALL=C firejail --private --whitelist=~/.local/run ls -sahl ~/.local/runOutput of
env LC_ALL=C firejail --private --debug --whitelist=~/.local/run ls -sahl ~/.local/run@kmk3 commented on GitHub (Mar 28, 2022):
@benaryorg commented on Mar 28:
Possibly related:
@rusty-snake commented on GitHub (Mar 29, 2022):
Then you do not need to use
--privatebecause that what--whitelistalready is.To quote myself "
privateshould always meanprivateand nothing else".However what we can (and likely should) do is speical handling for
XDG_RUNTIME_DIRlike we already have for.Xauthority.070e78a889/src/firejail/fs_home.c (L434-L435)