aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-m-z/songrec.profile
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2022-03-11 15:39:17 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2022-03-11 15:39:17 +0100
commitdf4b26977de4ce05d269caa8c3914f6f2f7ba8b8 (patch)
tree4b4be360bb023ed336029e00ad082f6e8e284ce2 /etc/profile-m-z/songrec.profile
parentMerge pull request #4260 from sandsmark/martin/songrec (diff)
downloadfirejail-df4b26977de4ce05d269caa8c3914f6f2f7ba8b8.tar.gz
firejail-df4b26977de4ce05d269caa8c3914f6f2f7ba8b8.tar.zst
firejail-df4b26977de4ce05d269caa8c3914f6f2f7ba8b8.zip
harden songrec
as suggested by @rusty-snake in addition blacklist/noblacklist/whitelist songrec application files
Diffstat (limited to 'etc/profile-m-z/songrec.profile')
-rw-r--r--etc/profile-m-z/songrec.profile16
1 files changed, 14 insertions, 2 deletions
diff --git a/etc/profile-m-z/songrec.profile b/etc/profile-m-z/songrec.profile
index d121f7845..f63a47c18 100644
--- a/etc/profile-m-z/songrec.profile
+++ b/etc/profile-m-z/songrec.profile
@@ -6,23 +6,34 @@ include songrec.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.local/share/SongRec
10noblacklist ${MUSIC}
11noblacklist ${VIDEOS}
9 12
10include disable-common.inc 13include disable-common.inc
11include disable-devel.inc 14include disable-devel.inc
12include disable-exec.inc 15include disable-exec.inc
13include disable-interpreters.inc 16include disable-interpreters.inc
14include disable-passwdmgr.inc
15include disable-programs.inc 17include disable-programs.inc
16include disable-shell.inc 18include disable-shell.inc
19include disable-xdg.inc
17 20
21nowhitelist ${PICTURES}
22
23mkdir ${HOME}/.local/share/SongRec
24whitelist ${HOME}/.local/share/SongRec
18include whitelist-common.inc 25include whitelist-common.inc
19include whitelist-player-common.inc 26include whitelist-player-common.inc
27include whitelist-run-common.inc
28include whitelist-runuser-common.inc
29include whitelist-var-common.inc
20 30
21apparmor 31apparmor
22caps.drop all 32caps.drop all
23netfilter 33netfilter
24no3d 34no3d
25nogroups 35nogroups
36noinput
26nonewprivs 37nonewprivs
27noroot 38noroot
28notv 39notv
@@ -34,7 +45,8 @@ seccomp.block-secondary
34shell none 45shell none
35 46
36disable-mnt 47disable-mnt
37private-bin songrec,ffmpeg 48private-bin ffmpeg,songrec
49private-cache
38private-dev 50private-dev
39private-tmp 51private-tmp
40 52