| 1 |
# Firejail profile for firefox-common |
| 2 |
# This file is overwritten after every install/update |
| 3 |
# Persistent local customizations |
| 4 |
include firefox-common.local |
| 5 |
# Persistent global definitions |
| 6 |
# added by caller profile |
| 7 |
#include globals.local |
| 8 |
|
| 9 |
# noexec ${HOME} breaks DRM binaries. |
| 10 |
?BROWSER_ALLOW_DRM: ignore noexec ${HOME} |
| 11 |
# noexec ${RUNUSER} breaks DRM binaries when using profile-sync-daemon. |
| 12 |
?BROWSER_ALLOW_DRM: ignore noexec ${RUNUSER} |
| 13 |
|
| 14 |
# Add the next lines to firefox-common.local if you want to use the migration |
| 15 |
# wizard. |
| 16 |
#noblacklist ${HOME}/.config/mozilla |
| 17 |
#noblacklist ${HOME}/.mozilla |
| 18 |
#whitelist ${HOME}/.config/mozilla |
| 19 |
#whitelist ${HOME}/.mozilla |
| 20 |
|
| 21 |
# To enable support for the KeePassXC extension, add the following lines to |
| 22 |
# firefox-common.local. |
| 23 |
# Note: Start KeePassXC before the web browser and keep it open to allow |
| 24 |
# communication between them. |
| 25 |
#noblacklist ${RUNUSER}/app |
| 26 |
#whitelist ${RUNUSER}/app/org.keepassxc.KeePassXC |
| 27 |
#whitelist ${RUNUSER}/kpxc_server |
| 28 |
#whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer |
| 29 |
|
| 30 |
# Add the next line to firefox-common.local to allow access to common |
| 31 |
# programs/addons/plugins. |
| 32 |
#include firefox-common-addons.profile |
| 33 |
|
| 34 |
noblacklist ${HOME}/.local/share/pki |
| 35 |
noblacklist ${HOME}/.mailcap |
| 36 |
noblacklist ${HOME}/.pki |
| 37 |
|
| 38 |
blacklist ${PATH}/curl |
| 39 |
blacklist ${PATH}/wget |
| 40 |
blacklist ${PATH}/wget2 |
| 41 |
|
| 42 |
include disable-common.inc |
| 43 |
include disable-devel.inc |
| 44 |
include disable-exec.inc |
| 45 |
include disable-interpreters.inc |
| 46 |
include disable-proc.inc |
| 47 |
include disable-programs.inc |
| 48 |
|
| 49 |
mkdir ${HOME}/.local/share/pki |
| 50 |
whitelist ${DOWNLOADS} |
| 51 |
whitelist ${HOME}/.local/share/pki |
| 52 |
whitelist ${HOME}/.mailcap |
| 53 |
whitelist ${HOME}/.pki |
| 54 |
whitelist /usr/share/doc |
| 55 |
whitelist /usr/share/gtk-doc/html |
| 56 |
whitelist /usr/share/mozilla |
| 57 |
whitelist /usr/share/webext |
| 58 |
include whitelist-common.inc |
| 59 |
include whitelist-run-common.inc |
| 60 |
include whitelist-runuser-common.inc |
| 61 |
include whitelist-usr-share-common.inc |
| 62 |
include whitelist-var-common.inc |
| 63 |
|
| 64 |
apparmor |
| 65 |
# Fixme! |
| 66 |
apparmor-replace |
| 67 |
caps.drop all |
| 68 |
# Note: machine-id breaks pulseaudio; add it to firefox-common.local if sound |
| 69 |
# is not required. |
| 70 |
#machine-id |
| 71 |
netfilter |
| 72 |
nodvd |
| 73 |
nogroups |
| 74 |
noinput |
| 75 |
nonewprivs |
| 76 |
# Note: noroot breaks GTK_USE_PORTAL=1 usage; see |
| 77 |
# https://github.com/netblue30/firejail/issues/2506. |
| 78 |
noroot |
| 79 |
notv |
| 80 |
?BROWSER_DISABLE_U2F: nou2f |
| 81 |
protocol unix,inet,inet6,netlink |
| 82 |
# Note: The seccomp line below still permits the chroot syscall; see |
| 83 |
# https://github.com/netblue30/firejail/issues/2506 for possible workarounds. |
| 84 |
seccomp !chroot |
| 85 |
# Note: tracelog may break or cause major issues with many Firefox-based |
| 86 |
# browsers; see https://github.com/netblue30/firejail/issues/1930. |
| 87 |
#tracelog |
| 88 |
|
| 89 |
disable-mnt |
| 90 |
?BROWSER_DISABLE_U2F: private-dev |
| 91 |
# Note: The private-etc line below works fine on most distributions but it |
| 92 |
# could cause problems on CentOS. |
| 93 |
private-etc @tls-ca,@x11,mailcap,mime.types,os-release |
| 94 |
private-tmp |
| 95 |
|
| 96 |
# Note: `dbus-user none` breaks various desktop integration features like |
| 97 |
# global menus, native notifications, Gnome connector, KDE Connect and power |
| 98 |
# management on KDE Plasma. |
| 99 |
dbus-user none |
| 100 |
dbus-system none |
| 101 |
|
| 102 |
# Allow drag and drop |
| 103 |
dbus-user.talk org.freedesktop.portal.Documents |
| 104 |
# Add the next line to firefox-common.local to enable native notifications. |
| 105 |
#dbus-user.talk org.freedesktop.Notifications |
| 106 |
# Add the next line to firefox-common.local to allow inhibiting screensavers. |
| 107 |
#dbus-user.talk org.freedesktop.ScreenSaver |
| 108 |
# Add the next line to firefox-common.local to allow media playback control through mpris. |
| 109 |
#dbus-user.own org.mpris.MediaPlayer2.firefox.* |
| 110 |
# Add the next lines to firefox-common.local for plasma browser integration. |
| 111 |
#dbus-user.own org.mpris.MediaPlayer2.plasma-browser-integration |
| 112 |
#dbus-user.talk org.kde.JobViewServer |
| 113 |
#dbus-user.talk org.kde.kdeconnect |
| 114 |
#dbus-user.talk org.kde.kuiserver |
| 115 |
# Add the next line to firefox-common.local to allow screensharing under |
| 116 |
# Wayland. |
| 117 |
#dbus-user.talk org.freedesktop.portal.Desktop |
| 118 |
# Also add the next line to firefox-common.local if screensharing does not work |
| 119 |
# with the above lines (depends on the portal implementation). |
| 120 |
#ignore noroot |
| 121 |
|
| 122 |
#restrict-namespaces |