mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 22:01:33 -06:00
[GH-ISSUE #3794] Trouble running Firefox Portable Dev Edition in firejail #2395
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#2395
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 @jameshibbard on GitHub (Dec 7, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3794
Hi,
I installed firejail (
sudo apt install firejail firejail-profiles) on a brand new Linux Mint 20.I want to use firejail to run my portable version of Firefox Developer Edition.
This executable is located here:
/home/jim/files/Portable/FirefoxDeveloperEdition/firefox.Here are the steps I took:
/etc/firejail/firefox-developer-edition.profileto/home/jim/.config/firejail/home/jim/.config/firejail/firefox-developer-edition.profile:whitelist ${HOME}/files/Portable/FirefoxDeveloperEditionWhen I run this however, I get the following error:
If I comment out
apparmoron line 32 of/etc/firejail/firefox-common.profile(this file is referenced byfirefox.profile, which is referenced byfirefox-developer-edition.profile), then everything works as expected.The same issue is described here: https://unix.stackexchange.com/questions/587080/whitelist-a-directory-for-execution-with-firejail
When I run
firejail --noprofile /home/jim/files/Portable/FirefoxDeveloperEdition/firefox, the program starts as expected.When I disable firejail, the program also starts as expected.
I'm not sure if this is a bug, or if I am doing anything wrong. I would be happy to provide any details you might need.
@SkewedZeppelin commented on GitHub (Dec 7, 2020):
You need to add
ignore noexec ${HOME}
to
.config/firejail/firefox-developer-edition.profile
@jameshibbard commented on GitHub (Dec 7, 2020):
I'm afraid that didn't help. I still get the same error message.
Here's my complete
.config/firejail/firefox-developer-edition.profile:@rusty-snake commented on GitHub (Dec 7, 2020):
apparmorandnoexec ${HOME}(indisable-exec.inc) make $HOMEnoexec,nodev,nosuid. This is a good defense-in-depth for the most sandboxes. However, if you want to execute software from inside your home, you need toignore noexec ${HOME}andignore apparmor.If you set
browser-allow-drm yesinfirejail.config,ignore noexec ${HOME}is implied (via condition).To make it work, this should be enough:
Aside: Why does
apparmornot break DRM?????!!!@jameshibbard commented on GitHub (Dec 7, 2020):
I'm afraid that didn't work. I still get the same error message.
This worked. Thank you. Also, for the explanation.
So now I just have
/home/jim/.config/firejail/firefox-developer-edition.local:and I'm starting the application like so:
Does that seem correct to you?
@rusty-snake commented on GitHub (Dec 7, 2020):
No, you lost all the security features. Right command:
firejail --profile=firefox-developer-edition /home/jim/files/Portable/FirefoxDeveloperEdition/firefox.PS: you can remove ~/.config/firejail/firefox-developer-edition.profile (dot profile).
PS2: If you use a wrapper script, you may want to add
"$@".@jameshibbard commented on GitHub (Dec 7, 2020):
Fantastic! Thanks for your help.