Debian Codegraph @

etc/profile-a-l/firefox.profile

raw
1 # Firejail profile for firefox
2 # Description: Safe and easy web browser from Mozilla
3 # This file is overwritten after every install/update
4 # Persistent local customizations
5 include firefox.local
6 # Persistent global definitions
7 include globals.local
8
9 # Note: Sandboxing web browsers is as important as it is complex. Users might
10 # be interested in creating custom profiles depending on the use case (e.g. one
11 # for general browsing, another for banking, ...). Consult our FAQ/issue
12 # tracker for more information. Here are a few links to get you going:
13 # https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#firefox-doesnt-open-in-a-new-sandbox-instead-it-opens-a-new-tab-in-an-existing-firefox-instance
14 # https://github.com/netblue30/firejail/wiki/Frequently-Asked-Questions#how-do-i-run-two-instances-of-firefox
15 # https://github.com/netblue30/firejail/issues/4206#issuecomment-824806968
16
17 # (Ignore entry from disable-common.inc)
18 ignore read-only ${HOME}/.config/mozilla/firefox/profiles.ini
19 ignore read-only ${HOME}/.mozilla/firefox/profiles.ini
20
21 noblacklist ${HOME}/.cache/mozilla
22 noblacklist ${HOME}/.config/mozilla
23 noblacklist ${HOME}/.mozilla
24 noblacklist ${RUNUSER}/*firefox*
25 noblacklist ${RUNUSER}/psd/*firefox*
26
27 # uses libgdk-pixbuf and/or glycin - see #6906
28 #blacklist /usr/libexec
29
30 mkdir ${HOME}/.cache/mozilla/firefox
31 mkdir ${HOME}/.config/mozilla
32 mkdir ${HOME}/.mozilla
33 whitelist ${HOME}/.cache/mozilla/firefox
34 whitelist ${HOME}/.config/mozilla
35 whitelist ${HOME}/.mozilla
36
37 whitelist /usr/share/firefox
38 whitelist /usr/share/gnome-shell/search-providers/firefox-search-provider.ini
39 whitelist ${RUNUSER}/*firefox*
40 whitelist ${RUNUSER}/psd/*firefox*
41
42 # Note: Firefox requires a shell to launch on Arch and Fedora.
43 # Add the next lines to firefox.local to enable private-bin.
44 #private-bin bash,dbus-launch,dbus-send,env,firefox,sh,which
45 #private-bin basename,bash,cat,dirname,expr,false,firefox,firefox-wayland,getenforce,ln,mkdir,pidof,restorecon,rm,rmdir,sed,sh,tclsh,true,uname
46 private-etc firefox
47
48 dbus-user filter
49 dbus-user.own org.mozilla.*
50 dbus-user.own org.mpris.MediaPlayer2.firefox.*
51 ignore dbus-user none
52
53 # Redirect
54 include firefox-common.profile