diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/disable-programs.inc | 1 | ||||
-rw-r--r-- | etc/ephemeral.profile | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index 8eb7176e9..b1605e757 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc | |||
@@ -723,6 +723,7 @@ blacklist ${HOME}/.cache/darktable | |||
723 | blacklist ${HOME}/.cache/discover | 723 | blacklist ${HOME}/.cache/discover |
724 | blacklist ${HOME}/.cache/dnox | 724 | blacklist ${HOME}/.cache/dnox |
725 | blacklist ${HOME}/.cache/dolphin | 725 | blacklist ${HOME}/.cache/dolphin |
726 | blacklist ${HOME}/.cache/ephemeral | ||
726 | blacklist ${HOME}/.cache/epiphany | 727 | blacklist ${HOME}/.cache/epiphany |
727 | blacklist ${HOME}/.cache/evolution | 728 | blacklist ${HOME}/.cache/evolution |
728 | blacklist ${HOME}/.cache/falkon | 729 | blacklist ${HOME}/.cache/falkon |
diff --git a/etc/ephemeral.profile b/etc/ephemeral.profile new file mode 100644 index 000000000..fa7746da5 --- /dev/null +++ b/etc/ephemeral.profile | |||
@@ -0,0 +1,61 @@ | |||
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}/.pki | ||
13 | noblacklist ${HOME}/.local/share/pki | ||
14 | |||
15 | # noexec ${HOME} breaks DRM binaries. | ||
16 | ?BROWSER_ALLOW_DRM: ignore noexec ${HOME} | ||
17 | |||
18 | include disable-common.inc | ||
19 | include disable-devel.inc | ||
20 | include disable-exec.inc | ||
21 | include disable-interpreters.inc | ||
22 | include disable-programs.inc | ||
23 | |||
24 | # enforce private-cache | ||
25 | #mkdir ${HOME}/.cache/ephemeral | ||
26 | mkdir ${HOME}/.pki | ||
27 | mkdir ${HOME}/.local/share/pki | ||
28 | # enforce private-cache | ||
29 | #whitelist ${HOME}/.cache/ephemeral | ||
30 | whitelist ${HOME}/.pki | ||
31 | whitelist ${HOME}/.local/share/pki | ||
32 | whitelist ${DOWNLOADS} | ||
33 | include whitelist-common.inc | ||
34 | include whitelist-usr-share-common.inc | ||
35 | include whitelist-var-common.inc | ||
36 | |||
37 | apparmor | ||
38 | caps.drop all | ||
39 | # machine-id breaks pulse audio; it should work fine in setups where sound is not required. | ||
40 | #machine-id | ||
41 | netfilter | ||
42 | # nodbus breaks preferences | ||
43 | #nodbus | ||
44 | nodvd | ||
45 | nogroups | ||
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 | shell none | ||
54 | tracelog | ||
55 | |||
56 | disable-mnt | ||
57 | private-cache | ||
58 | private-dev | ||
59 | # private-etc below works fine on most distributions. There are some problems on CentOS. | ||
60 | #private-etc alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,group,gtk-2.0,gtk-3.0,hostname,hosts,ld.so.cache,localtime,login.defs,machine-id,mailcap,mime.types,nsswitch.conf,os-release,pango,passwd,pki,pulse,resolv.conf,selinux,ssl,X11,xdg | ||
61 | private-tmp | ||