diff options
author | kortewegdevries <kortewegdevries@protonmail.ch> | 2020-12-07 13:28:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 13:28:13 +0000 |
commit | 7cc77198b2337b827d07da67f771eb62e786e9fe (patch) | |
tree | 57db982d11a30389a09bbd6c3c6997368c8784c5 /etc | |
parent | xfce4-screenshooter: comment mdwe (diff) | |
download | firejail-7cc77198b2337b827d07da67f771eb62e786e9fe.tar.gz firejail-7cc77198b2337b827d07da67f771eb62e786e9fe.tar.zst firejail-7cc77198b2337b827d07da67f771eb62e786e9fe.zip |
Add profile for authenticator-rs, improve falkon (#3747)
* Add profile for authenticator-rs, improve falkon, balsa
* Fix
* Add private-tmp to falkon
* Revert balsa
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/disable-programs.inc | 1 | ||||
-rw-r--r-- | etc/profile-a-l/authenticator-rs.profile | 55 | ||||
-rw-r--r-- | etc/profile-a-l/falkon.profile | 15 |
3 files changed, 69 insertions, 2 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc index a651a2171..976c2dab9 100644 --- a/etc/inc/disable-programs.inc +++ b/etc/inc/disable-programs.inc | |||
@@ -587,6 +587,7 @@ blacklist ${HOME}/.local/share/agenda | |||
587 | blacklist ${HOME}/.local/share/apps/korganizer | 587 | blacklist ${HOME}/.local/share/apps/korganizer |
588 | blacklist ${HOME}/.local/share/aspyr-media | 588 | blacklist ${HOME}/.local/share/aspyr-media |
589 | blacklist ${HOME}/.local/share/autokey | 589 | blacklist ${HOME}/.local/share/autokey |
590 | blacklist ${HOME}/.local/share/authenticator-rs | ||
590 | blacklist ${HOME}/.local/share/backintime | 591 | blacklist ${HOME}/.local/share/backintime |
591 | blacklist ${HOME}/.local/share/baloo | 592 | blacklist ${HOME}/.local/share/baloo |
592 | blacklist ${HOME}/.local/share/barrier | 593 | blacklist ${HOME}/.local/share/barrier |
diff --git a/etc/profile-a-l/authenticator-rs.profile b/etc/profile-a-l/authenticator-rs.profile new file mode 100644 index 000000000..1eb802d9b --- /dev/null +++ b/etc/profile-a-l/authenticator-rs.profile | |||
@@ -0,0 +1,55 @@ | |||
1 | # Firejail profile for authenticator-rs | ||
2 | # Description: Rust based 2FA authentication program | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include authenticator-rs.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${HOME}/.local/share/authenticator-rs | ||
10 | |||
11 | include disable-common.inc | ||
12 | include disable-devel.inc | ||
13 | include disable-exec.inc | ||
14 | include disable-interpreters.inc | ||
15 | include disable-passwdmgr.inc | ||
16 | include disable-programs.inc | ||
17 | include disable-shell.inc | ||
18 | include disable-xdg.inc | ||
19 | |||
20 | mkdir ${HOME}/.local/share/authenticator-rs | ||
21 | whitelist ${HOME}/.local/share/authenticator-rs | ||
22 | whitelist ${DOWNLOADS} | ||
23 | whitelist /usr/share/uk.co.grumlimited.authenticator-rs | ||
24 | include whitelist-common.inc | ||
25 | include whitelist-runuser-common.inc | ||
26 | include whitelist-usr-share-common.inc | ||
27 | include whitelist-var-common.inc | ||
28 | |||
29 | apparmor | ||
30 | caps.drop all | ||
31 | netfilter | ||
32 | no3d | ||
33 | nodvd | ||
34 | nogroups | ||
35 | nonewprivs | ||
36 | noroot | ||
37 | nosound | ||
38 | notv | ||
39 | nou2f | ||
40 | novideo | ||
41 | protocol unix,inet,inet6 | ||
42 | seccomp | ||
43 | shell none | ||
44 | tracelog | ||
45 | |||
46 | disable-mnt | ||
47 | private-bin authenticator-rs | ||
48 | private-cache | ||
49 | private-dev | ||
50 | private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gtk-2.0,gtk-3.0,pki,resolv.conf,ssl,xdg | ||
51 | private-tmp | ||
52 | |||
53 | dbus-user filter | ||
54 | dbus-user.talk ca.desrt.dconf | ||
55 | dbus-system none | ||
diff --git a/etc/profile-a-l/falkon.profile b/etc/profile-a-l/falkon.profile index 0024b6660..640b0e485 100644 --- a/etc/profile-a-l/falkon.profile +++ b/etc/profile-a-l/falkon.profile | |||
@@ -15,15 +15,20 @@ include disable-exec.inc | |||
15 | include disable-interpreters.inc | 15 | include disable-interpreters.inc |
16 | include disable-passwdmgr.inc | 16 | include disable-passwdmgr.inc |
17 | include disable-programs.inc | 17 | include disable-programs.inc |
18 | include disable-xdg.inc | ||
18 | 19 | ||
19 | mkdir ${HOME}/.cache/falkon | 20 | mkdir ${HOME}/.cache/falkon |
20 | mkdir ${HOME}/.config/falkon | 21 | mkdir ${HOME}/.config/falkon |
21 | whitelist ${DOWNLOADS} | 22 | whitelist ${DOWNLOADS} |
22 | whitelist ${HOME}/.cache/falkon | 23 | whitelist ${HOME}/.cache/falkon |
23 | whitelist ${HOME}/.config/falkon | 24 | whitelist ${HOME}/.config/falkon |
25 | whitelist /usr/share/falkon | ||
24 | include whitelist-common.inc | 26 | include whitelist-common.inc |
27 | include whitelist-runuser-common.inc | ||
28 | include whitelist-usr-share-common.inc | ||
25 | include whitelist-var-common.inc | 29 | include whitelist-var-common.inc |
26 | 30 | ||
31 | apparmor | ||
27 | caps.drop all | 32 | caps.drop all |
28 | netfilter | 33 | netfilter |
29 | nodvd | 34 | nodvd |
@@ -37,7 +42,13 @@ protocol unix,inet,inet6,netlink | |||
37 | seccomp !chroot | 42 | seccomp !chroot |
38 | # tracelog | 43 | # tracelog |
39 | 44 | ||
45 | disable-mnt | ||
46 | # private-bin falkon | ||
47 | private-cache | ||
40 | private-dev | 48 | private-dev |
41 | # private-etc alternatives,passwd,group,hostname,hosts,localtime,nsswitch.conf,resolv.conf,gtk-2.0,pango,fonts,adobe,mime.types,mailcap,asound.conf,pulse,machine-id,ca-certificates,ssl,pki,crypto-policies | 49 | private-etc adobe,alternatives,asound.conf,ati,ca-certificates,crypto-policies,dconf,drirc,fonts,group,gtk-2.0,gtk-3.0,hostname,hosts,localtime,machine-id,mailcap,mime.types,nsswitch.conf,pango,passwd,pki,pulse,resolv.conf,selinux,ssl,xdg |
42 | # private-tmp - interferes with the opening of downloaded files | 50 | private-tmp |
43 | 51 | ||
52 | # dbus-user filter | ||
53 | # dbus-user.own org.kde.Falkon | ||
54 | dbus-system none | ||