diff options
author | 2019-12-23 22:54:58 +0000 | |
---|---|---|
committer | 2019-12-23 22:54:58 +0000 | |
commit | c342738a0712e90d49a949c61cc453304c92f5b5 (patch) | |
tree | d075019767e08385271c11190cdfba476a3767d5 /etc/ephemeral.profile | |
parent | Fix comments in thunderbird.profile (diff) | |
download | firejail-c342738a0712e90d49a949c61cc453304c92f5b5.tar.gz firejail-c342738a0712e90d49a949c61cc453304c92f5b5.tar.zst firejail-c342738a0712e90d49a949c61cc453304c92f5b5.zip |
Add ephemeral profile (#3094)
* Create ephemeral.profile
* Add ephemeral.profile
* Add ephemeral.profile
Diffstat (limited to 'etc/ephemeral.profile')
-rw-r--r-- | etc/ephemeral.profile | 61 |
1 files changed, 61 insertions, 0 deletions
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 | ||