aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar kortewegdevries <kortewegdevries@protonmail.ch>2020-11-18 16:52:22 +0000
committerLibravatar GitHub <noreply@github.com>2020-11-18 16:52:22 +0000
commitddb9194f8152ef16e3a1e678a976dc7aca10b066 (patch)
tree4ad10be11c975a5976ed5abd8e35e45598c32e39 /etc
parentMerge pull request #3757 from rusty-snake/overrides2upstream (diff)
downloadfirejail-ddb9194f8152ef16e3a1e678a976dc7aca10b066.tar.gz
firejail-ddb9194f8152ef16e3a1e678a976dc7aca10b066.tar.zst
firejail-ddb9194f8152ef16e3a1e678a976dc7aca10b066.zip
Add profile for straw-viewer (#3742)
* Add profile for straw-viewer * Remove blacklist, fixes
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/disable-programs.inc2
-rw-r--r--etc/profile-a-l/gtk-straw-viewer.profile14
-rw-r--r--etc/profile-a-l/gtk-youtube-viewer.profile (renamed from etc/profile-a-l/gtk-youtube-viewer)10
-rw-r--r--etc/profile-a-l/gtk2-youtube-viewer.profile (renamed from etc/profile-a-l/gtk2-youtube-viewer)6
-rw-r--r--etc/profile-a-l/gtk3-youtube-viewer.profile (renamed from etc/profile-a-l/gtk3-youtube-viewer)6
-rw-r--r--etc/profile-m-z/straw-viewer.profile58
-rw-r--r--etc/profile-m-z/youtube-viewer.profile8
7 files changed, 85 insertions, 19 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index 7e3c0b657..976f988b2 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -378,6 +378,7 @@ blacklist ${HOME}/.config/spotify
378blacklist ${HOME}/.config/sqlitebrowser 378blacklist ${HOME}/.config/sqlitebrowser
379blacklist ${HOME}/.config/stellarium 379blacklist ${HOME}/.config/stellarium
380blacklist ${HOME}/.config/strawberry 380blacklist ${HOME}/.config/strawberry
381blacklist ${HOME}/.config/straw-viewer
381blacklist ${HOME}/.config/supertuxkart 382blacklist ${HOME}/.config/supertuxkart
382blacklist ${HOME}/.config/synfig 383blacklist ${HOME}/.config/synfig
383blacklist ${HOME}/.config/teams 384blacklist ${HOME}/.config/teams
@@ -972,6 +973,7 @@ blacklist ${HOME}/.cache/smuxi
972blacklist ${HOME}/.cache/snox 973blacklist ${HOME}/.cache/snox
973blacklist ${HOME}/.cache/spotify 974blacklist ${HOME}/.cache/spotify
974blacklist ${HOME}/.cache/strawberry 975blacklist ${HOME}/.cache/strawberry
976blacklist ${HOME}/.cache/straw-viewer
975blacklist ${HOME}/.cache/supertuxkart 977blacklist ${HOME}/.cache/supertuxkart
976blacklist ${HOME}/.cache/systemsettings 978blacklist ${HOME}/.cache/systemsettings
977blacklist ${HOME}/.cache/telepathy 979blacklist ${HOME}/.cache/telepathy
diff --git a/etc/profile-a-l/gtk-straw-viewer.profile b/etc/profile-a-l/gtk-straw-viewer.profile
new file mode 100644
index 000000000..e2721360b
--- /dev/null
+++ b/etc/profile-a-l/gtk-straw-viewer.profile
@@ -0,0 +1,14 @@
1# Firejail profile for gtk-straw-viewer
2# Description: Gtk front-end to straw-viewer
3# This file is overwritten after every install/update
4# Persistent local customizations
5include gtk-straw-viewer.local
6# added by included profile
7#include globals.local
8
9ignore quiet
10
11include whitelist-runuser-common.inc
12
13# Redirect
14include straw-viewer.profile
diff --git a/etc/profile-a-l/gtk-youtube-viewer b/etc/profile-a-l/gtk-youtube-viewer.profile
index 023f10d3d..848979b52 100644
--- a/etc/profile-a-l/gtk-youtube-viewer
+++ b/etc/profile-a-l/gtk-youtube-viewer.profile
@@ -3,16 +3,12 @@
3# This file is overwritten after every install/update 3# This file is overwritten after every install/update
4# Persistent local customizations 4# Persistent local customizations
5include gtk-youtube-viewer.local 5include gtk-youtube-viewer.local
6# Persistent global definitions 6# added by included profile
7# include globals.local 7#include globals.local
8 8
9ignore quiet 9ignore quiet
10 10
11noblacklist /tmp/.X11-unix
12noblacklist ${RUNUSER}/wayland-*
13noblacklist ${RUNUSER}
14
15include whitelist-runuser-common.inc 11include whitelist-runuser-common.inc
16 12
17# Redirect 13# Redirect
18include youtube-viewer.profile \ No newline at end of file 14include youtube-viewer.profile
diff --git a/etc/profile-a-l/gtk2-youtube-viewer b/etc/profile-a-l/gtk2-youtube-viewer.profile
index 331e73218..dccadcf2e 100644
--- a/etc/profile-a-l/gtk2-youtube-viewer
+++ b/etc/profile-a-l/gtk2-youtube-viewer.profile
@@ -3,8 +3,8 @@
3# This file is overwritten after every install/update 3# This file is overwritten after every install/update
4# Persistent local customizations 4# Persistent local customizations
5include gtk2-youtube-viewer.local 5include gtk2-youtube-viewer.local
6# Persistent global definitions 6# added by included profile
7# include globals.local 7#include globals.local
8 8
9ignore quiet 9ignore quiet
10 10
@@ -15,4 +15,4 @@ noblacklist ${RUNUSER}
15include whitelist-runuser-common.inc 15include whitelist-runuser-common.inc
16 16
17# Redirect 17# Redirect
18include youtube-viewer.profile \ No newline at end of file 18include youtube-viewer.profile
diff --git a/etc/profile-a-l/gtk3-youtube-viewer b/etc/profile-a-l/gtk3-youtube-viewer.profile
index 4c5bde55f..3d91e284d 100644
--- a/etc/profile-a-l/gtk3-youtube-viewer
+++ b/etc/profile-a-l/gtk3-youtube-viewer.profile
@@ -3,8 +3,8 @@
3# This file is overwritten after every install/update 3# This file is overwritten after every install/update
4# Persistent local customizations 4# Persistent local customizations
5include gtk3-youtube-viewer.local 5include gtk3-youtube-viewer.local
6# Persistent global definitions 6# added by included profile
7# include globals.local 7#include globals.local
8 8
9ignore quiet 9ignore quiet
10 10
@@ -15,4 +15,4 @@ noblacklist ${RUNUSER}
15include whitelist-runuser-common.inc 15include whitelist-runuser-common.inc
16 16
17# Redirect 17# Redirect
18include youtube-viewer.profile \ No newline at end of file 18include youtube-viewer.profile
diff --git a/etc/profile-m-z/straw-viewer.profile b/etc/profile-m-z/straw-viewer.profile
new file mode 100644
index 000000000..721ad38ee
--- /dev/null
+++ b/etc/profile-m-z/straw-viewer.profile
@@ -0,0 +1,58 @@
1# Firejail profile for straw-viewer
2# Description: Fork of youtube-viewer acts like an invidious frontend
3quiet
4# This file is overwritten after every install/update
5# Persistent local customizations
6include straw-viewer.local
7# Persistent global definitions
8include globals.local
9
10noblacklist ${HOME}/.cache/straw-viewer
11noblacklist ${HOME}/.config/straw-viewer
12
13include allow-lua.inc
14include allow-perl.inc
15include allow-python2.inc
16include allow-python3.inc
17
18include disable-common.inc
19include disable-devel.inc
20include disable-exec.inc
21include disable-interpreters.inc
22include disable-passwdmgr.inc
23include disable-programs.inc
24include disable-xdg.inc
25
26mkdir ${HOME}/.config/straw-viewer
27mkdir ${HOME}/.cache/straw-viewer
28whitelist ${HOME}/.cache/straw-viewer
29whitelist ${HOME}/.config/straw-viewer
30whitelist ${DOWNLOADS}
31include whitelist-common.inc
32include whitelist-usr-share-common.inc
33include whitelist-var-common.inc
34
35apparmor
36caps.drop all
37netfilter
38nodvd
39nogroups
40nonewprivs
41noroot
42notv
43nou2f
44novideo
45protocol unix,inet,inet6
46seccomp
47shell none
48tracelog
49
50disable-mnt
51private-bin bash,ffmpeg,ffprobe,gtk-straw-viewer,mpv,perl,python*,sh,smplayer,straw-viewer,stty,vlc,wget,which,youtube-dl
52private-cache
53private-dev
54private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,machine-id,mime.types,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl,X11,xdg
55private-tmp
56
57dbus-user none
58dbus-system none
diff --git a/etc/profile-m-z/youtube-viewer.profile b/etc/profile-m-z/youtube-viewer.profile
index 513cb0f6e..a3a2afa29 100644
--- a/etc/profile-m-z/youtube-viewer.profile
+++ b/etc/profile-m-z/youtube-viewer.profile
@@ -7,10 +7,6 @@ include youtube-viewer.local
7# Persistent global definitions 7# Persistent global definitions
8include globals.local 8include globals.local
9 9
10blacklist /tmp/.X11-unix
11blacklist ${RUNUSER}/wayland-*
12blacklist ${RUNUSER}
13
14noblacklist ${HOME}/.config/youtube-viewer 10noblacklist ${HOME}/.config/youtube-viewer
15 11
16include allow-perl.inc 12include allow-perl.inc
@@ -47,11 +43,11 @@ shell none
47tracelog 43tracelog
48 44
49disable-mnt 45disable-mnt
50# private-bin ffmpeg,ffprobe,firefox,gtk-youtube-viewer,gtk2-youtube-viewer,gtk3-youtube-viewer,mpv,python*,smplayer,sh,which,vlc,youtube-dl,youtube-viewer 46private-bin ffmpeg,ffprobe,firefox,gtk-youtube-viewer,gtk2-youtube-viewer,gtk3-youtube-viewer,mpv,python*,sh,smplayer,stty,vlc,which,youtube-dl,youtube-viewer
51private-cache 47private-cache
52private-dev 48private-dev
53private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,machine-id,mime.types,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl,X11,xdg 49private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,machine-id,mime.types,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl,X11,xdg
54private-tmp 50private-tmp
55 51
56dbus-user none 52dbus-user none
57dbus-system none \ No newline at end of file 53dbus-system none