diff options
author | rusty-snake <print_hello_world+GitHub@protonmail.com> | 2019-03-30 06:29:12 +0000 |
---|---|---|
committer | glitsj16 <glitsj16@users.noreply.github.com> | 2019-03-30 06:29:12 +0000 |
commit | 2c66089176b2bb18b4a79b37d1d2e1e421235dc7 (patch) | |
tree | f452699b9cee66069f8e102cdc8141a1f86d969c | |
parent | Fixes for man firejail (#2628) (diff) | |
download | firejail-2c66089176b2bb18b4a79b37d1d2e1e421235dc7.tar.gz firejail-2c66089176b2bb18b4a79b37d1d2e1e421235dc7.tar.zst firejail-2c66089176b2bb18b4a79b37d1d2e1e421235dc7.zip |
Add anki.profile (#2626)
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | RELNOTES | 2 | ||||
-rw-r--r-- | etc/anki.profile | 57 | ||||
-rw-r--r-- | etc/disable-programs.inc | 1 |
5 files changed, 61 insertions, 3 deletions
@@ -536,7 +536,7 @@ rusty-snake (https://github.com/rusty-snake) | |||
536 | - added profiles: thunderbird-wayland, supertuxkart, ghostwriter | 536 | - added profiles: thunderbird-wayland, supertuxkart, ghostwriter |
537 | - added profiles: klavaro, mypaint, mypaint-ora-thumbnailer, nano | 537 | - added profiles: klavaro, mypaint, mypaint-ora-thumbnailer, nano |
538 | - added profiles: gajim-history-manager, freemind, nomacs, kid3 | 538 | - added profiles: gajim-history-manager, freemind, nomacs, kid3 |
539 | - added profiles: kid3-qt, kid3-cli | 539 | - added profiles: kid3-qt, kid3-cli, anki, anki |
540 | - fixed profiles: kdenlive, bibletime, rhythmbox, gajim, seahorse | 540 | - fixed profiles: kdenlive, bibletime, rhythmbox, gajim, seahorse |
541 | - fixed profiles: libreoffice, gnome-maps, wget, seahorse-tool | 541 | - fixed profiles: libreoffice, gnome-maps, wget, seahorse-tool |
542 | - hardened profiles: disable-common.inc, disable-programs.inc | 542 | - hardened profiles: disable-common.inc, disable-programs.inc |
@@ -102,5 +102,5 @@ We also keep a list of profile fixes for previous released versions in [etc-fixe | |||
102 | ## Current development version: 0.9.59 | 102 | ## Current development version: 0.9.59 |
103 | 103 | ||
104 | ## New profiles: | 104 | ## New profiles: |
105 | crow, nyx, klavaro, mypaint, celluoid, nano, transgui, sysprof, simplescreenrecorder, geekbench, xfce4-mixer, pavucontrol, d-feet, seahorse, secret-tool, gnome-keyring, regextester, hardinfo, gnome-system-log, gnome-nettool, netactview, redshift, devhelp, assogiate, subdownloader, font-manager, exfalso, gconf-editor, dconf-editor, mpdris2, sysprof-cli, seahorse-tool, secret-tool, dconf, gsettings, code-oss, pragha, Maelstrom, ostrichriders, bzflag, freeciv, lincity-ng, megaglest, openttd, crawl, crawl-tiles, teeworlds, torcs, tremulous, warsow, lugaru, manaplus, pioneer, scorched3d, widelands, freemind, kid3, kid3-cli, kid3-qt, nomacs, freecol, opencity, openclonk, slashem, vulturesclaw, vultureseye | 105 | crow, nyx, klavaro, mypaint, celluoid, nano, transgui, sysprof, simplescreenrecorder, geekbench, xfce4-mixer, pavucontrol, d-feet, seahorse, secret-tool, gnome-keyring, regextester, hardinfo, gnome-system-log, gnome-nettool, netactview, redshift, devhelp, assogiate, subdownloader, font-manager, exfalso, gconf-editor, dconf-editor, mpdris2, sysprof-cli, seahorse-tool, secret-tool, dconf, gsettings, code-oss, pragha, Maelstrom, ostrichriders, bzflag, freeciv, lincity-ng, megaglest, openttd, crawl, crawl-tiles, teeworlds, torcs, tremulous, warsow, lugaru, manaplus, pioneer, scorched3d, widelands, freemind, kid3, kid3-cli, kid3-qt, nomacs, freecol, opencity, openclonk, slashem, vulturesclaw, vultureseye, anki |
106 | 106 | ||
@@ -11,7 +11,7 @@ firejail (0.9.59) baseline; urgency=low | |||
11 | * new profiles: teeworlds, torcs, tremulous, warsow, lugaru, manaplus | 11 | * new profiles: teeworlds, torcs, tremulous, warsow, lugaru, manaplus |
12 | * new profiles: pioneer, scorched3d, widelands, freemind, kid3, kid3-qt | 12 | * new profiles: pioneer, scorched3d, widelands, freemind, kid3, kid3-qt |
13 | * new profiles: kid3-cli, nomacs, freecol, opencity, openclonk, slashem | 13 | * new profiles: kid3-cli, nomacs, freecol, opencity, openclonk, slashem |
14 | * new profiles: vultureseye, vulturesclaw | 14 | * new profiles: vultureseye, vulturesclaw, anki |
15 | * memory-deny-write-execute now also blocks memfd_create | 15 | * memory-deny-write-execute now also blocks memfd_create |
16 | * drop support for flatpak/snap packages | 16 | * drop support for flatpak/snap packages |
17 | 17 | ||
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. |