mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3951] firejail rtkit dbus support #2472
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#2472
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 @hautecodure on GitHub (Feb 6, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3951
I'm trying to get
PipeWirerunning, but its built-in module to elevate process priority, utilizingrtkit, seems to error out, when trying to do so.The error:
Failed to look up client: No such file or directoryseems out-of-place, but looking at the source,rtkitutilizes GetConnectionUnixProcessID to get information about the calling process and throwsEIOif it fails.I tried running
firejail --build(which shouldn't be limited by a profile config), but the error still appears and the resulting config does not contain anydbusreferences.Is this functionality supported in
firejail?Env:
@kris7t commented on GitHub (Feb 6, 2021):
I think
firejail --builddoesn't really support dbus, so you'll have to write yourdbuslines in the profile yourself. Not sure though why does it fail without any profile.@rusty-snake commented on GitHub (Feb 7, 2021):
--buildimplies--nonewprivsand--caps.drop=all. For testing if this works with firejail at all, you should use --noprofile and --profile=noprofile.profile.c295fa849f/rtkit-daemon.c (L973)If this is a pid outside of the sandbox, it will fail.
@hautecodure commented on GitHub (Feb 7, 2021):
Thank for the suggestions, i think I've made a bit of a progress, but not sure how to continue.
I think the issue is not related to dbus itself. After reading a bit more,
rtkitexpects aMakeThreadRealtime/MakeThreadHighPrioritycall withtidas argument. This argument is the return from thegettidsyscall as seen in module-rtkit inPipeWire.firejail --profile=noprofile.profile,gettidis filtered, returning a1 < tid < 100long.firejail,tid == pidAny suggestions what's the best/cleanest way to proceed?
@rusty-snake commented on GitHub (Feb 7, 2021):
@rusty-snake commented on GitHub (Feb 7, 2021):
Possible that we need a
do-not-create-a-new-pid-namespacecommand. The new pid-namespace is the reason why there is no profile for teamviewer and is the presumed cause why push-to-talk in zoom don't work and ... .Maybe playing with
unshare --mount --user --pid --map-current-user --mount-proc --forkhelps to findout more.