summaryrefslogtreecommitdiffstats
path: root/etc/anki.profile
diff options
context:
space:
mode:
authorLibravatar rusty-snake <print_hello_world+GitHub@protonmail.com>2019-03-30 06:29:12 +0000
committerLibravatar glitsj16 <glitsj16@users.noreply.github.com>2019-03-30 06:29:12 +0000
commit2c66089176b2bb18b4a79b37d1d2e1e421235dc7 (patch)
treef452699b9cee66069f8e102cdc8141a1f86d969c /etc/anki.profile
parentFixes for man firejail (#2628) (diff)
downloadfirejail-2c66089176b2bb18b4a79b37d1d2e1e421235dc7.tar.gz
firejail-2c66089176b2bb18b4a79b37d1d2e1e421235dc7.tar.zst
firejail-2c66089176b2bb18b4a79b37d1d2e1e421235dc7.zip
Add anki.profile (#2626)
Diffstat (limited to 'etc/anki.profile')
-rw-r--r--etc/anki.profile57
1 files changed, 57 insertions, 0 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
5include anki.local
6# Persistent global definitions
7include globals.local
8
9noblacklist ${DOCUMENTS}
10noblacklist ${HOME}/.local/share/Anki2
11
12# Allow python (blacklisted by disable-interpreters.inc)
13noblacklist ${PATH}/python2*
14noblacklist ${PATH}/python3*
15noblacklist /usr/lib/python2*
16noblacklist /usr/lib/python3*
17noblacklist /usr/local/lib/python2*
18noblacklist /usr/local/lib/python3*
19
20include disable-common.inc
21include disable-devel.inc
22include disable-exec.inc
23include disable-interpreters.inc
24include disable-passwdmgr.inc
25include disable-programs.inc
26include disable-xdg.inc
27
28whitelist ${DOCUMENTS}
29whitelist ${HOME}/.local/share/Anki2
30include whitelist-common.inc
31include whitelist-var-common.inc
32
33apparmor
34caps.drop all
35machine-id
36netfilter
37no3d
38nodbus
39nodvd
40nogroups
41nonewprivs
42noroot
43nosound
44notv
45nou2f
46novideo
47protocol unix,inet,inet6
48seccomp
49shell none
50tracelog
51
52disable-mnt
53private-bin anki,python*
54private-cache
55private-dev
56private-etc alternatives,ca-certificates,fonts,gtk-2.0,hostname,hosts,machine-id,pki,resolv.conf,Trolltech.conf,ssl
57private-tmp