diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/anki.profile | 57 | ||||
-rw-r--r-- | etc/disable-programs.inc | 1 | ||||
-rw-r--r-- | etc/evince.profile | 2 |
3 files changed, 59 insertions, 1 deletions
diff --git a/etc/anki.profile b/etc/anki.profile new file mode 100644 index 000000000..6ab95dd52 --- /dev/null +++ b/etc/anki.profile | |||
@@ -0,0 +1,57 @@ | |||
1 | # Firejail profile for anki | ||
2 | # Description: flexible, intelligent flashcard program | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include anki.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${DOCUMENTS} | ||
10 | noblacklist ${HOME}/.local/share/Anki2 | ||
11 | |||
12 | # Allow python (blacklisted by disable-interpreters.inc) | ||
13 | noblacklist ${PATH}/python2* | ||
14 | noblacklist ${PATH}/python3* | ||
15 | noblacklist /usr/lib/python2* | ||
16 | noblacklist /usr/lib/python3* | ||
17 | noblacklist /usr/local/lib/python2* | ||
18 | noblacklist /usr/local/lib/python3* | ||
19 | |||
20 | include disable-common.inc | ||
21 | include disable-devel.inc | ||
22 | include disable-exec.inc | ||
23 | include disable-interpreters.inc | ||
24 | include disable-passwdmgr.inc | ||
25 | include disable-programs.inc | ||
26 | include disable-xdg.inc | ||
27 | |||
28 | whitelist ${DOCUMENTS} | ||
29 | whitelist ${HOME}/.local/share/Anki2 | ||
30 | include whitelist-common.inc | ||
31 | include whitelist-var-common.inc | ||
32 | |||
33 | apparmor | ||
34 | caps.drop all | ||
35 | machine-id | ||
36 | netfilter | ||
37 | no3d | ||
38 | nodbus | ||
39 | nodvd | ||
40 | nogroups | ||
41 | nonewprivs | ||
42 | noroot | ||
43 | nosound | ||
44 | notv | ||
45 | nou2f | ||
46 | novideo | ||
47 | protocol unix,inet,inet6 | ||
48 | seccomp | ||
49 | shell none | ||
50 | tracelog | ||
51 | |||
52 | disable-mnt | ||
53 | private-bin anki,python* | ||
54 | private-cache | ||
55 | private-dev | ||
56 | private-etc alternatives,ca-certificates,fonts,gtk-2.0,hostname,hosts,machine-id,pki,resolv.conf,Trolltech.conf,ssl | ||
57 | private-tmp | ||
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index f5a40ff5f..96fd80daf 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc | |||
@@ -422,6 +422,7 @@ blacklist ${HOME}/.lmmsrc.xml | |||
422 | blacklist ${HOME}/.local/lib/vivaldi | 422 | blacklist ${HOME}/.local/lib/vivaldi |
423 | blacklist ${HOME}/.local/share/0ad | 423 | blacklist ${HOME}/.local/share/0ad |
424 | blacklist ${HOME}/.local/share/3909/PapersPlease | 424 | blacklist ${HOME}/.local/share/3909/PapersPlease |
425 | blacklist ${HOME}/.local/share/Anki2 | ||
425 | blacklist ${HOME}/.local/share/Empathy | 426 | blacklist ${HOME}/.local/share/Empathy |
426 | blacklist ${HOME}/.local/share/JetBrains | 427 | blacklist ${HOME}/.local/share/JetBrains |
427 | blacklist ${HOME}/.local/share/Mendeley Ltd. | 428 | blacklist ${HOME}/.local/share/Mendeley Ltd. |
diff --git a/etc/evince.profile b/etc/evince.profile index c10e3b04f..c3c6d4be0 100644 --- a/etc/evince.profile +++ b/etc/evince.profile | |||
@@ -23,7 +23,7 @@ machine-id | |||
23 | # net none - breaks AppArmor on Ubuntu systems | 23 | # net none - breaks AppArmor on Ubuntu systems |
24 | netfilter | 24 | netfilter |
25 | no3d | 25 | no3d |
26 | nodbus | 26 | nodbus # might break two-page-view on some systems |
27 | nodvd | 27 | nodvd |
28 | nogroups | 28 | nogroups |
29 | nonewprivs | 29 | nonewprivs |