Debian Codegraph @

etc/profile-a-l/anki.profile

raw
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 # Add the following to anki.local if you don't need media playing/recording:
10 #ignore include allow-lua.inc
11 #machine-id
12 #nosound
13
14 noblacklist ${DOCUMENTS}
15 noblacklist ${HOME}/.config/mpv
16 noblacklist ${HOME}/.local/share/Anki2
17 noblacklist ${HOME}/.mplayer
18
19 # sh and dbus-send are used by aqt/theme.py to query dark mode through
20 # org.freedesktop.portal.Desktop.
21 # Allow /bin/sh (blacklisted by disable-shell.inc)
22 include allow-bin-sh.inc
23
24 # Lua is required by mpv.
25 # Allow lua (blacklisted by disable-interpreters.inc)
26 include allow-lua.inc
27
28 # Allow python (blacklisted by disable-interpreters.inc)
29 include allow-python2.inc
30 include allow-python3.inc
31
32 include disable-common.inc
33 include disable-devel.inc
34 include disable-exec.inc
35 include disable-interpreters.inc
36 include disable-programs.inc
37 include disable-shell.inc
38 include disable-xdg.inc
39
40 mkdir ${HOME}/.local/share/Anki2
41 whitelist ${DOCUMENTS}
42 whitelist ${HOME}/.config/mpv
43 whitelist ${HOME}/.local/share/Anki2
44 whitelist ${HOME}/.mplayer
45 include whitelist-common.inc
46 include whitelist-var-common.inc
47
48 apparmor
49 caps.drop all
50 #machine-id
51 netfilter
52 no3d
53 nodvd
54 nogroups
55 noinput
56 nonewprivs
57 noroot
58 #nosound
59 notv
60 nou2f
61 novideo
62 protocol unix,inet,inet6
63 # QtWebengine needs chroot to set up its own sandbox
64 seccomp !chroot
65 seccomp.block-secondary
66
67 disable-mnt
68 # env is required for python scripts on Gentoo Linux.
69 # anki uses mpv or mplayer for playing audio and uses lame to record audio.
70 # sh and dbus-send are used by aqt/theme.py to query dark mode through
71 # org.freedesktop.portal.Desktop.
72 private-bin anki,dbus-send,env,lame,mplayer,mpv,python*,sh
73 private-cache
74 private-dev
75 private-etc @tls-ca,@x11
76 private-tmp
77
78 dbus-user filter
79 # org.freedesktop.portal.Desktop is queried for dark mode.
80 dbus-user.talk org.freedesktop.portal.Desktop
81 dbus-system none
82
83 deterministic-shutdown
84 #restrict-namespaces