mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4127] [SOLVED] Firefox has different audio backend when started with custom profile #2545
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#2545
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 @omega3 on GitHub (Mar 22, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4127
Why when I start Firefox in Firejail like this:
firejail --private=/home/user/jail/ /usr/lib/firefox/firefoxAnd a new Firefox profile is created in
/home/user/jail/.mozilla/firefox/I have in Firefox about:support → media: audio backend pulse-rust.
When I delete this Firefox profile from
/home/user/jail/.mozilla/firefox/And when I run it with custom profile:
firejail --private=/home/user/jail/ --profile=/home/user/jail/.config/firejail/firefox.local /usr/lib/firefox/firefoxnew Firefox profile is created and when I run Firefox I have in about:support → media: audio backend alsa.
My config firefox.local contains only this
It has nothing to do with sound.
Should I whitelist something that is related to pulse-rust?
Recently Manjaro switch to pipewire and it appeared that when there is alsa in about:support → media: audio backend in Firefox I can't hear sound. And it looks like the cause of the trouble is how Firefox profile is created with when Firefox is in Firejail with local settings.
Environment
Operating System: Manjaro Linux
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.6-1-MANJARO
OS Type: 64-bit
Graphics Platform: X11
@rusty-snake commented on GitHub (Mar 22, 2021):
--profile=/home/user/jail/.config/firejail/firefox.localmeans you use only these two line which restrict access to/run/user/$UID. You have NOseccomp,nonewprivs,caps.drop all,disable-mntordbus-user filter. Are you sure you want this?Regarding your question: If firefox can not access the pulseaudio/pipewire socket, it uses alsa as fallback.
@omega3 commented on GitHub (Mar 22, 2021):
I don't even understand what it means. So far didn't I use local profile but there were changes in Keepassxc so I had to use it.
So I need to add my local profile whitelist to Firefox profile or copy from Firefox profile to local profile all else?
Edition:
Ok. This worked. I copied from /etc/firejail/firefox.profile
to local profile so it looks like this:
It works but it looks a different from
https://github.com/netblue30/firejail/blob/master/etc-fixes/0.9.52/firefox.profile
Maybe my is older. Are profiles in /etc/firejail/ updated when Firejail is updated? Maybe that is a stupid question but is it ok to run Firefox with such profile?
@rusty-snake commented on GitHub (Mar 22, 2021):
You are at 0.9.65. 🤔 The git-master profile is at https://github.com/netblue30/firejail/blob/master/etc/profile-a-l/firefox.profile.
Yes. apt, dnf, pacman update
/etc/firejail/*if you update firejail/firejail-profiles.You can simply add these two whitelist (for kpxc) to
~/.config/firejail/firefox.localand start you sandbox withfirejail --private=~/jail /usr/bin/firefox. Furthermore you can even more theprivate ${HOME}/jailtofirefox.local.@omega3 commented on GitHub (Mar 22, 2021):
Ok. Thank you very much. It is solved.