aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Amin Vakil <info@aminvakil.com>2020-06-11 13:06:14 +0430
committerLibravatar GitHub <noreply@github.com>2020-06-11 08:36:14 +0000
commit89d77cc34191308681d49be5f4e7413e0f48e9b5 (patch)
treeed0aafa2c2b369e87a096b7055099c3a03dc388c
parentFix qt5ct colour schemes and QSS (#3463) (diff)
downloadfirejail-89d77cc34191308681d49be5f4e7413e0f48e9b5.tar.gz
firejail-89d77cc34191308681d49be5f4e7413e0f48e9b5.tar.zst
firejail-89d77cc34191308681d49be5f4e7413e0f48e9b5.zip
Add strawberry profile (#3459)
* Add strawberry profile * Fix comment * Add to disable-programs.inc & firecfg.config * Add /home/amin/.local/share/strawberry to profile and disable-programs * Various hardening for strawberry profile Signed-off-by: Amin Vakil <info@aminvakil.com> * Change nodbus to dbus-system none in strawberry profile * Add dbus-user none to strawberry profile * Add whitelist-var-common, sort private-etc * Sort, Add wruc, Add netlink to protocol in strawberry profile * Remove dbus-user none to allow using gnome functions for various usage in strawberry profile
-rw-r--r--etc/inc/disable-programs.inc3
-rw-r--r--etc/profile-m-z/strawberry.profile49
-rw-r--r--src/firecfg/firecfg.config1
3 files changed, 53 insertions, 0 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index 89bfa540e..32228b8f2 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -341,6 +341,7 @@ blacklist ${HOME}/.config/specialmailcollectionsrc
341blacklist ${HOME}/.config/spotify 341blacklist ${HOME}/.config/spotify
342blacklist ${HOME}/.config/sqlitebrowser 342blacklist ${HOME}/.config/sqlitebrowser
343blacklist ${HOME}/.config/stellarium 343blacklist ${HOME}/.config/stellarium
344blacklist ${HOME}/.config/strawberry
344blacklist ${HOME}/.config/supertuxkart 345blacklist ${HOME}/.config/supertuxkart
345blacklist ${HOME}/.config/synfig 346blacklist ${HOME}/.config/synfig
346blacklist ${HOME}/.config/teams 347blacklist ${HOME}/.config/teams
@@ -644,6 +645,7 @@ blacklist ${HOME}/.local/share/scribus
644blacklist ${HOME}/.local/share/signal-cli 645blacklist ${HOME}/.local/share/signal-cli
645blacklist ${HOME}/.local/share/spotify 646blacklist ${HOME}/.local/share/spotify
646blacklist ${HOME}/.local/share/steam 647blacklist ${HOME}/.local/share/steam
648blacklist ${HOME}/.local/share/strawberry
647blacklist ${HOME}/.local/share/supertux2 649blacklist ${HOME}/.local/share/supertux2
648blacklist ${HOME}/.local/share/supertuxkart 650blacklist ${HOME}/.local/share/supertuxkart
649blacklist ${HOME}/.local/share/swell-foop 651blacklist ${HOME}/.local/share/swell-foop
@@ -897,6 +899,7 @@ blacklist ${HOME}/.cache/simple-scan
897blacklist ${HOME}/.cache/slimjet 899blacklist ${HOME}/.cache/slimjet
898blacklist ${HOME}/.cache/snox 900blacklist ${HOME}/.cache/snox
899blacklist ${HOME}/.cache/spotify 901blacklist ${HOME}/.cache/spotify
902blacklist ${HOME}/.cache/strawberry
900blacklist ${HOME}/.cache/supertuxkart 903blacklist ${HOME}/.cache/supertuxkart
901blacklist ${HOME}/.cache/systemsettings 904blacklist ${HOME}/.cache/systemsettings
902blacklist ${HOME}/.cache/telepathy 905blacklist ${HOME}/.cache/telepathy
diff --git a/etc/profile-m-z/strawberry.profile b/etc/profile-m-z/strawberry.profile
new file mode 100644
index 000000000..cd36c0d41
--- /dev/null
+++ b/etc/profile-m-z/strawberry.profile
@@ -0,0 +1,49 @@
1# Firejail profile for strawberry
2# Description: A music player and music collection organizer
3# This file is overwritten after every install/update
4# Persistent local customizations
5include strawberry.local
6# Persistent global definitions
7include globals.local
8
9noblacklist ${HOME}/.cache/strawberry
10noblacklist ${HOME}/.config/strawberry
11noblacklist ${HOME}/.local/share/strawberry
12noblacklist ${MUSIC}
13
14include disable-common.inc
15include disable-devel.inc
16include disable-exec.inc
17include disable-interpreters.inc
18include disable-passwdmgr.inc
19include disable-programs.inc
20include disable-xdg.inc
21
22include whitelist-runuser-common.inc
23include whitelist-usr-share-common.inc
24include whitelist-var-common.inc
25
26apparmor
27caps.drop all
28netfilter
29nodvd
30nogroups
31nonewprivs
32noroot
33notv
34nou2f
35novideo
36protocol unix,inet,inet6,netlink
37# blacklisting of ioprio_set system calls breaks strawberry
38seccomp !ioprio_set
39shell none
40tracelog
41
42disable-mnt
43private-bin strawberry,strawberry-tagreader
44private-cache
45private-dev
46private-etc ca-certificates,crypto-policies,fonts,host.conf,hostname,hosts,nsswitch.conf,pki,resolv.conf,ssl
47private-tmp
48
49dbus-system none
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index 251b23905..43777da03 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -635,6 +635,7 @@ steam
635steam-native 635steam-native
636steam-runtime 636steam-runtime
637stellarium 637stellarium
638strawberry
638strings 639strings
639studio.sh 640studio.sh
640subdownloader 641subdownloader