| 1 |
# Firejail profile for ephemeral |
| 2 |
# Description: The always-incognito web browser |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include ephemeral.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
# enforce private-cache |
| 10 |
#noblacklist ${HOME}/.cache/ephemeral |
| 11 |
|
| 12 |
noblacklist ${HOME}/.local/share/pki |
| 13 |
noblacklist ${HOME}/.mailcap |
| 14 |
noblacklist ${HOME}/.pki |
| 15 |
|
| 16 |
# noexec ${HOME} breaks DRM binaries. |
| 17 |
?BROWSER_ALLOW_DRM: ignore noexec ${HOME} |
| 18 |
|
| 19 |
include disable-common.inc |
| 20 |
include disable-devel.inc |
| 21 |
include disable-exec.inc |
| 22 |
include disable-interpreters.inc |
| 23 |
include disable-programs.inc |
| 24 |
|
| 25 |
# enforce private-cache |
| 26 |
#mkdir ${HOME}/.cache/ephemeral |
| 27 |
mkdir ${HOME}/.local/share/pki |
| 28 |
# enforce private-cache |
| 29 |
#whitelist ${HOME}/.cache/ephemeral |
| 30 |
whitelist ${HOME}/.local/share/pki |
| 31 |
whitelist ${HOME}/.mailcap |
| 32 |
whitelist ${HOME}/.pki |
| 33 |
whitelist ${DOWNLOADS} |
| 34 |
include whitelist-common.inc |
| 35 |
include whitelist-usr-share-common.inc |
| 36 |
include whitelist-var-common.inc |
| 37 |
|
| 38 |
apparmor |
| 39 |
caps.drop all |
| 40 |
# machine-id breaks pulse audio; it should work fine in setups where sound is not required. |
| 41 |
#machine-id |
| 42 |
netfilter |
| 43 |
nodvd |
| 44 |
nogroups |
| 45 |
noinput |
| 46 |
nonewprivs |
| 47 |
# noroot breaks GTK_USE_PORTAL=1 usage, see https://github.com/netblue30/firejail/issues/2506. |
| 48 |
noroot |
| 49 |
notv |
| 50 |
?BROWSER_DISABLE_U2F: nou2f |
| 51 |
protocol unix,inet,inet6,netlink |
| 52 |
seccomp |
| 53 |
tracelog |
| 54 |
|
| 55 |
disable-mnt |
| 56 |
private-cache |
| 57 |
?BROWSER_DISABLE_U2F: private-dev |
| 58 |
# private-etc below works fine on most distributions. There are some problems on CentOS. |
| 59 |
#private-etc @tls-ca,@x11,mailcap,mime.types,os-release |
| 60 |
private-tmp |
| 61 |
|
| 62 |
# breaks preferences |
| 63 |
#dbus-user none |
| 64 |
#dbus-system none |
| 65 |
|
| 66 |
restrict-namespaces |