aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z
diff options
context:
space:
mode:
authorLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-07-09 10:49:17 +0000
committerLibravatar GitHub <noreply@github.com>2020-07-09 10:49:17 +0000
commitdeb6c12454191b7aeff3d259612a00427d1aa6a1 (patch)
treebdf4351c170112ded7b076298b2b4bddd7664f2b /etc/profile-m-z
parentUpdate disable-common.inc (#3499) (diff)
downloadfirejail-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.profile3
-rw-r--r--etc/profile-m-z/openarena.profile27
-rw-r--r--etc/profile-m-z/openarena_ded.profile5
-rw-r--r--etc/profile-m-z/tremulous.profile3
-rw-r--r--etc/profile-m-z/xonotic-sdl-wrapper.profile6
-rw-r--r--etc/profile-m-z/xonotic.profile12
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
7include globals.local 7include 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
9noblacklist ${HOME}/.cache/minetest 12noblacklist ${HOME}/.cache/minetest
10noblacklist ${HOME}/.minetest 13noblacklist ${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
16include disable-programs.inc 16include disable-programs.inc
17include disable-xdg.inc 17include disable-xdg.inc
18 18
19mkdir ${HOME}/.openarena
20whitelist ${HOME}/.openarena
21whitelist /usr/share/openarena
22include whitelist-common.inc
23include whitelist-runuser-common.inc
24include whitelist-usr-share-common.in
19include whitelist-var-common.inc 25include whitelist-var-common.inc
20 26
21apparmor 27apparmor
22caps.drop all 28caps.drop all
23# ipc-namespace 29netfilter
24# netfilter 30nodvd
25# nodvd 31nogroups
26# nogroups
27nonewprivs 32nonewprivs
28noroot 33noroot
29notv 34notv
30# nou2f 35nou2f
31novideo 36novideo
32protocol unix,inet,inet6,netlink 37protocol unix,inet,inet6,netlink
33seccomp 38seccomp
34shell none 39shell none
35# tracelog 40tracelog
36 41
37# disable-mnt 42disable-mnt
38# private-bin openarena 43private-bin bash,cut,glxinfo,grep,head,openarena,openarena_ded,quake3,zenity
39private-cache 44private-cache
40private-dev 45private-dev
41# private-etc drirc,machine-id,openal,passwd,selinux,udev,xdg 46private-etc drirc,machine-id,openal,passwd,selinux,udev,xdg
42private-tmp 47private-tmp
43 48
44# dbus-user none 49dbus-user none
45# dbus-system none 50dbus-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
5include 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
20mkdir ${HOME}/.tremulous 20mkdir ${HOME}/.tremulous
21whitelist ${HOME}/.tremulous 21whitelist ${HOME}/.tremulous
22whitelist /usr/share/tremulous
22include whitelist-common.inc 23include whitelist-common.inc
24include whitelist-runuser-common.inc
25include whitelist-usr-share-common.inc
23include whitelist-var-common.inc 26include whitelist-var-common.inc
24 27
25caps.drop all 28caps.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
3include xonotic-sdl-wrapper.local
4
5# Redirect
6include 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
14include disable-interpreters.inc 14include disable-interpreters.inc
15include disable-passwdmgr.inc 15include disable-passwdmgr.inc
16include disable-programs.inc 16include disable-programs.inc
17include disable-xdg.inc
17 18
18mkdir ${HOME}/.xonotic 19mkdir ${HOME}/.xonotic
19whitelist ${HOME}/.xonotic 20whitelist ${HOME}/.xonotic
21whitelist /usr/share/xonotic
20include whitelist-common.inc 22include whitelist-common.inc
23include whitelist-runuser-common.inc
24include whitelist-usr-share-common.inc
21include whitelist-var-common.inc 25include whitelist-var-common.inc
22 26
27apparmor
23caps.drop all 28caps.drop all
24netfilter 29netfilter
25nodvd 30nodvd
@@ -32,12 +37,17 @@ novideo
32protocol unix,inet,inet6 37protocol unix,inet,inet6
33seccomp 38seccomp
34shell none 39shell none
40tracelog
35 41
36disable-mnt 42disable-mnt
37private-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 43private-cache
44private-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
38private-dev 45private-dev
39private-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 46private-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
40private-tmp 47private-tmp
41 48
42dbus-user none 49dbus-user none
43dbus-system none 50dbus-system none
51
52read-only ${HOME}
53read-write ${HOME}/.xonotic