diff options
author | rusty-snake <41237666+rusty-snake@users.noreply.github.com> | 2020-07-09 10:49:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 10:49:17 +0000 |
commit | deb6c12454191b7aeff3d259612a00427d1aa6a1 (patch) | |
tree | bdf4351c170112ded7b076298b2b4bddd7664f2b /etc/profile-m-z | |
parent | Update disable-common.inc (#3499) (diff) | |
download | firejail-deb6c12454191b7aeff3d259612a00427d1aa6a1.tar.gz firejail-deb6c12454191b7aeff3d259612a00427d1aa6a1.tar.zst firejail-deb6c12454191b7aeff3d259612a00427d1aa6a1.zip |
hardening some profiles (#3505)
* hardening some profiles
- harden and fix flameshot
- wruc: frogatto, ghostwriter
- harden gnome-latex
- add whitelist opt-in note to keepassxc
- add comment to minetest
- harden openarena, tremulous, xonotic
- add profile for xonotic-sdl-wrapper
* followup
Diffstat (limited to 'etc/profile-m-z')
-rw-r--r-- | etc/profile-m-z/minetest.profile | 3 | ||||
-rw-r--r-- | etc/profile-m-z/openarena.profile | 27 | ||||
-rw-r--r-- | etc/profile-m-z/openarena_ded.profile | 5 | ||||
-rw-r--r-- | etc/profile-m-z/tremulous.profile | 3 | ||||
-rw-r--r-- | etc/profile-m-z/xonotic-sdl-wrapper.profile | 6 | ||||
-rw-r--r-- | etc/profile-m-z/xonotic.profile | 12 |
6 files changed, 44 insertions, 12 deletions
diff --git a/etc/profile-m-z/minetest.profile b/etc/profile-m-z/minetest.profile index fa7d9edb0..1da430ce6 100644 --- a/etc/profile-m-z/minetest.profile +++ b/etc/profile-m-z/minetest.profile | |||
@@ -6,6 +6,9 @@ include minetest.local | |||
6 | # Persistent global definitions | 6 | # Persistent global definitions |
7 | include globals.local | 7 | include globals.local |
8 | 8 | ||
9 | # In order to save in-game screenshots to a persistent location edit ~/.minetest/minetest.conf: | ||
10 | # screenshot_path = /home/<USER>/.minetest/screenshots | ||
11 | |||
9 | noblacklist ${HOME}/.cache/minetest | 12 | noblacklist ${HOME}/.cache/minetest |
10 | noblacklist ${HOME}/.minetest | 13 | noblacklist ${HOME}/.minetest |
11 | 14 | ||
diff --git a/etc/profile-m-z/openarena.profile b/etc/profile-m-z/openarena.profile index 3b15a6e42..45682fc31 100644 --- a/etc/profile-m-z/openarena.profile +++ b/etc/profile-m-z/openarena.profile | |||
@@ -16,30 +16,35 @@ include disable-passwdmgr.inc | |||
16 | include disable-programs.inc | 16 | include disable-programs.inc |
17 | include disable-xdg.inc | 17 | include disable-xdg.inc |
18 | 18 | ||
19 | mkdir ${HOME}/.openarena | ||
20 | whitelist ${HOME}/.openarena | ||
21 | whitelist /usr/share/openarena | ||
22 | include whitelist-common.inc | ||
23 | include whitelist-runuser-common.inc | ||
24 | include whitelist-usr-share-common.in | ||
19 | include whitelist-var-common.inc | 25 | include whitelist-var-common.inc |
20 | 26 | ||
21 | apparmor | 27 | apparmor |
22 | caps.drop all | 28 | caps.drop all |
23 | # ipc-namespace | 29 | netfilter |
24 | # netfilter | 30 | nodvd |
25 | # nodvd | 31 | nogroups |
26 | # nogroups | ||
27 | nonewprivs | 32 | nonewprivs |
28 | noroot | 33 | noroot |
29 | notv | 34 | notv |
30 | # nou2f | 35 | nou2f |
31 | novideo | 36 | novideo |
32 | protocol unix,inet,inet6,netlink | 37 | protocol unix,inet,inet6,netlink |
33 | seccomp | 38 | seccomp |
34 | shell none | 39 | shell none |
35 | # tracelog | 40 | tracelog |
36 | 41 | ||
37 | # disable-mnt | 42 | disable-mnt |
38 | # private-bin openarena | 43 | private-bin bash,cut,glxinfo,grep,head,openarena,openarena_ded,quake3,zenity |
39 | private-cache | 44 | private-cache |
40 | private-dev | 45 | private-dev |
41 | # private-etc drirc,machine-id,openal,passwd,selinux,udev,xdg | 46 | private-etc drirc,machine-id,openal,passwd,selinux,udev,xdg |
42 | private-tmp | 47 | private-tmp |
43 | 48 | ||
44 | # dbus-user none | 49 | dbus-user none |
45 | # dbus-system none | 50 | dbus-system none |
diff --git a/etc/profile-m-z/openarena_ded.profile b/etc/profile-m-z/openarena_ded.profile new file mode 100644 index 000000000..c529e7e11 --- /dev/null +++ b/etc/profile-m-z/openarena_ded.profile | |||
@@ -0,0 +1,5 @@ | |||
1 | # Firejail profile alias for openarena | ||
2 | # This file is overwritten after every install/update | ||
3 | |||
4 | # Redirect | ||
5 | include openarena.profile | ||
diff --git a/etc/profile-m-z/tremulous.profile b/etc/profile-m-z/tremulous.profile index 66a536008..67463a999 100644 --- a/etc/profile-m-z/tremulous.profile +++ b/etc/profile-m-z/tremulous.profile | |||
@@ -19,7 +19,10 @@ include disable-xdg.inc | |||
19 | 19 | ||
20 | mkdir ${HOME}/.tremulous | 20 | mkdir ${HOME}/.tremulous |
21 | whitelist ${HOME}/.tremulous | 21 | whitelist ${HOME}/.tremulous |
22 | whitelist /usr/share/tremulous | ||
22 | include whitelist-common.inc | 23 | include whitelist-common.inc |
24 | include whitelist-runuser-common.inc | ||
25 | include whitelist-usr-share-common.inc | ||
23 | include whitelist-var-common.inc | 26 | include whitelist-var-common.inc |
24 | 27 | ||
25 | caps.drop all | 28 | caps.drop all |
diff --git a/etc/profile-m-z/xonotic-sdl-wrapper.profile b/etc/profile-m-z/xonotic-sdl-wrapper.profile new file mode 100644 index 000000000..6f0c7cf4c --- /dev/null +++ b/etc/profile-m-z/xonotic-sdl-wrapper.profile | |||
@@ -0,0 +1,6 @@ | |||
1 | # Firejail profile alias for xonotic | ||
2 | # This file is overwritten after every install/update | ||
3 | include xonotic-sdl-wrapper.local | ||
4 | |||
5 | # Redirect | ||
6 | include xonotic.profile | ||
diff --git a/etc/profile-m-z/xonotic.profile b/etc/profile-m-z/xonotic.profile index 949988c3b..aa8cc7d0e 100644 --- a/etc/profile-m-z/xonotic.profile +++ b/etc/profile-m-z/xonotic.profile | |||
@@ -14,12 +14,17 @@ include disable-exec.inc | |||
14 | include disable-interpreters.inc | 14 | include disable-interpreters.inc |
15 | include disable-passwdmgr.inc | 15 | include disable-passwdmgr.inc |
16 | include disable-programs.inc | 16 | include disable-programs.inc |
17 | include disable-xdg.inc | ||
17 | 18 | ||
18 | mkdir ${HOME}/.xonotic | 19 | mkdir ${HOME}/.xonotic |
19 | whitelist ${HOME}/.xonotic | 20 | whitelist ${HOME}/.xonotic |
21 | whitelist /usr/share/xonotic | ||
20 | include whitelist-common.inc | 22 | include whitelist-common.inc |
23 | include whitelist-runuser-common.inc | ||
24 | include whitelist-usr-share-common.inc | ||
21 | include whitelist-var-common.inc | 25 | include whitelist-var-common.inc |
22 | 26 | ||
27 | apparmor | ||
23 | caps.drop all | 28 | caps.drop all |
24 | netfilter | 29 | netfilter |
25 | nodvd | 30 | nodvd |
@@ -32,12 +37,17 @@ novideo | |||
32 | protocol unix,inet,inet6 | 37 | protocol unix,inet,inet6 |
33 | seccomp | 38 | seccomp |
34 | shell none | 39 | shell none |
40 | tracelog | ||
35 | 41 | ||
36 | disable-mnt | 42 | disable-mnt |
37 | private-bin bash,blind-id,darkplaces-glx,darkplaces-sdl,dirname,grep,ldd,netstat,ps,readlink,sh,uname,xonotic,xonotic-glx,xonotic-linux32-dedicated,xonotic-linux32-glx,xonotic-linux32-sdl,xonotic-linux64-dedicated,xonotic-linux64-glx,xonotic-linux64-sdl,xonotic-sdl | 43 | private-cache |
44 | private-bin basename,bash,blind-id,cut,darkplaces-glx,darkplaces-sdl,dirname,glxinfo,grep,head,ldd,netstat,ps,readlink,sed,sh,uname,xonotic,xonotic-glx,xonotic-linux32-dedicated,xonotic-linux32-glx,xonotic-linux32-sdl,xonotic-linux64-dedicated,xonotic-linux64-glx,xonotic-linux64-sdl,xonotic-sdl,xonotic-sdl-wrapper,zenity | ||
38 | private-dev | 45 | private-dev |
39 | private-etc alternatives,asound.conf,ca-certificates,crypto-policies,drirc,fonts,group,host.conf,hostname,hosts,ld.so.cache,ld.so.preload,localtime,machine-id,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl | 46 | private-etc alternatives,asound.conf,ca-certificates,crypto-policies,drirc,fonts,group,host.conf,hostname,hosts,ld.so.cache,ld.so.preload,localtime,machine-id,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl |
40 | private-tmp | 47 | private-tmp |
41 | 48 | ||
42 | dbus-user none | 49 | dbus-user none |
43 | dbus-system none | 50 | dbus-system none |
51 | |||
52 | read-only ${HOME} | ||
53 | read-write ${HOME}/.xonotic | ||