aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/apparmor/firejail-default2
-rw-r--r--etc/firejail.config2
-rw-r--r--etc/inc/disable-programs.inc1
-rw-r--r--etc/inc/whitelist-usr-share-common.inc2
-rw-r--r--etc/profile-a-l/celluloid.profile16
-rw-r--r--etc/profile-a-l/gtk-youtube-viewer18
-rw-r--r--etc/profile-a-l/gtk2-youtube-viewer18
-rw-r--r--etc/profile-a-l/gtk3-youtube-viewer18
-rw-r--r--etc/profile-m-z/mplayer.profile13
-rw-r--r--etc/profile-m-z/mpv.profile22
-rw-r--r--etc/profile-m-z/nomacs.profile2
-rw-r--r--etc/profile-m-z/signal-desktop.profile1
-rw-r--r--etc/profile-m-z/totem.profile15
-rw-r--r--etc/profile-m-z/vlc.profile16
-rw-r--r--etc/profile-m-z/xplayer.profile14
-rw-r--r--etc/profile-m-z/youtube-viewer.profile57
16 files changed, 190 insertions, 27 deletions
diff --git a/etc/apparmor/firejail-default b/etc/apparmor/firejail-default
index 04a38f0ce..68e20d9b9 100644
--- a/etc/apparmor/firejail-default
+++ b/etc/apparmor/firejail-default
@@ -157,5 +157,5 @@ capability setfcap,
157#capability mac_admin, 157#capability mac_admin,
158 158
159# Site-specific additions and overrides. See local/README for details. 159# Site-specific additions and overrides. See local/README for details.
160#include <local/firejail-local> 160#include <local/firejail-default>
161} 161}
diff --git a/etc/firejail.config b/etc/firejail.config
index b2a96612f..731e744dd 100644
--- a/etc/firejail.config
+++ b/etc/firejail.config
@@ -107,7 +107,7 @@
107# Enable or disable seccomp support, default enabled. 107# Enable or disable seccomp support, default enabled.
108# seccomp yes 108# seccomp yes
109 109
110# Seccomp error action, kill or errno (EPERM, ENOSYS etc) 110# Seccomp error action, kill, log or errno (EPERM, ENOSYS etc)
111# seccomp-error-action EPERM 111# seccomp-error-action EPERM
112 112
113# Enable or disable user namespace support, default enabled. 113# Enable or disable user namespace support, default enabled.
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index e911be93a..e5dd9cb59 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -396,6 +396,7 @@ blacklist ${HOME}/.config/yandex-browser
396blacklist ${HOME}/.config/yandex-browser-beta 396blacklist ${HOME}/.config/yandex-browser-beta
397blacklist ${HOME}/.config/yelp 397blacklist ${HOME}/.config/yelp
398blacklist ${HOME}/.config/youtube-dl 398blacklist ${HOME}/.config/youtube-dl
399blacklist ${HOME}/.config/youtube-viewer
399blacklist ${HOME}/.config/zathura 400blacklist ${HOME}/.config/zathura
400blacklist ${HOME}/.config/zoomus.conf 401blacklist ${HOME}/.config/zoomus.conf
401blacklist ${HOME}/.config/Zulip 402blacklist ${HOME}/.config/Zulip
diff --git a/etc/inc/whitelist-usr-share-common.inc b/etc/inc/whitelist-usr-share-common.inc
index c9c8bdedf..ceeb14dcc 100644
--- a/etc/inc/whitelist-usr-share-common.inc
+++ b/etc/inc/whitelist-usr-share-common.inc
@@ -41,6 +41,8 @@ whitelist /usr/share/misc
41whitelist /usr/share/Modules 41whitelist /usr/share/Modules
42whitelist /usr/share/myspell 42whitelist /usr/share/myspell
43whitelist /usr/share/p11-kit 43whitelist /usr/share/p11-kit
44whitelist /usr/share/perl
45whitelist /usr/share/perl5
44whitelist /usr/share/pixmaps 46whitelist /usr/share/pixmaps
45whitelist /usr/share/pki 47whitelist /usr/share/pki
46whitelist /usr/share/plasma 48whitelist /usr/share/plasma
diff --git a/etc/profile-a-l/celluloid.profile b/etc/profile-a-l/celluloid.profile
index 567bd912a..54d3f742f 100644
--- a/etc/profile-a-l/celluloid.profile
+++ b/etc/profile-a-l/celluloid.profile
@@ -9,8 +9,6 @@ include globals.local
9noblacklist ${HOME}/.config/celluloid 9noblacklist ${HOME}/.config/celluloid
10noblacklist ${HOME}/.config/gnome-mpv 10noblacklist ${HOME}/.config/gnome-mpv
11noblacklist ${HOME}/.config/youtube-dl 11noblacklist ${HOME}/.config/youtube-dl
12noblacklist ${MUSIC}
13noblacklist ${VIDEOS}
14 12
15# Allow python (blacklisted by disable-interpreters.inc) 13# Allow python (blacklisted by disable-interpreters.inc)
16include allow-python2.inc 14include allow-python2.inc
@@ -22,8 +20,20 @@ include disable-exec.inc
22include disable-interpreters.inc 20include disable-interpreters.inc
23include disable-passwdmgr.inc 21include disable-passwdmgr.inc
24include disable-programs.inc 22include disable-programs.inc
25include disable-xdg.inc
26 23
24read-only ${DESKTOP}
25mkdir ${HOME}/.config/celluloid
26mkdir ${HOME}/.config/gnome-mpv
27mkdir ${HOME}/.config/youtube-dl
28whitelist ${HOME}/.config/celluloid
29whitelist ${HOME}/.config/gnome-mpv
30whitelist ${HOME}/.config/youtube-dl
31whitelist ${DESKTOP}
32whitelist ${DOWNLOADS}
33whitelist ${MUSIC}
34whitelist ${PICTURES}
35whitelist ${VIDEOS}
36include whitelist-common.inc
27include whitelist-runuser-common.inc 37include whitelist-runuser-common.inc
28include whitelist-usr-share-common.inc 38include whitelist-usr-share-common.inc
29include whitelist-var-common.inc 39include whitelist-var-common.inc
diff --git a/etc/profile-a-l/gtk-youtube-viewer b/etc/profile-a-l/gtk-youtube-viewer
new file mode 100644
index 000000000..023f10d3d
--- /dev/null
+++ b/etc/profile-a-l/gtk-youtube-viewer
@@ -0,0 +1,18 @@
1# Firejail profile for gtk-youtube-viewer
2# Description: Gtk front-end to youtube-viewer
3# This file is overwritten after every install/update
4# Persistent local customizations
5include gtk-youtube-viewer.local
6# Persistent global definitions
7# include globals.local
8
9ignore quiet
10
11noblacklist /tmp/.X11-unix
12noblacklist ${RUNUSER}/wayland-*
13noblacklist ${RUNUSER}
14
15include whitelist-runuser-common.inc
16
17# Redirect
18include youtube-viewer.profile \ No newline at end of file
diff --git a/etc/profile-a-l/gtk2-youtube-viewer b/etc/profile-a-l/gtk2-youtube-viewer
new file mode 100644
index 000000000..331e73218
--- /dev/null
+++ b/etc/profile-a-l/gtk2-youtube-viewer
@@ -0,0 +1,18 @@
1# Firejail profile for gtk2-youtube-viewer
2# Description: Gtk front-end to youtube-viewer
3# This file is overwritten after every install/update
4# Persistent local customizations
5include gtk2-youtube-viewer.local
6# Persistent global definitions
7# include globals.local
8
9ignore quiet
10
11noblacklist /tmp/.X11-unix
12noblacklist ${RUNUSER}/wayland-*
13noblacklist ${RUNUSER}
14
15include whitelist-runuser-common.inc
16
17# Redirect
18include youtube-viewer.profile \ No newline at end of file
diff --git a/etc/profile-a-l/gtk3-youtube-viewer b/etc/profile-a-l/gtk3-youtube-viewer
new file mode 100644
index 000000000..4c5bde55f
--- /dev/null
+++ b/etc/profile-a-l/gtk3-youtube-viewer
@@ -0,0 +1,18 @@
1# Firejail profile for gtk3-youtube-viewer
2# Description: Gtk front-end to youtube-viewer
3# This file is overwritten after every install/update
4# Persistent local customizations
5include gtk3-youtube-viewer.local
6# Persistent global definitions
7# include globals.local
8
9ignore quiet
10
11noblacklist /tmp/.X11-unix
12noblacklist ${RUNUSER}/wayland-*
13noblacklist ${RUNUSER}
14
15include whitelist-runuser-common.inc
16
17# Redirect
18include youtube-viewer.profile \ No newline at end of file
diff --git a/etc/profile-m-z/mplayer.profile b/etc/profile-m-z/mplayer.profile
index cd25d6c0b..f4f862cb9 100644
--- a/etc/profile-m-z/mplayer.profile
+++ b/etc/profile-m-z/mplayer.profile
@@ -7,8 +7,6 @@ include mplayer.local
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.mplayer 9noblacklist ${HOME}/.mplayer
10noblacklist ${MUSIC}
11noblacklist ${VIDEOS}
12 10
13include disable-common.inc 11include disable-common.inc
14include disable-devel.inc 12include disable-devel.inc
@@ -16,8 +14,16 @@ include disable-exec.inc
16include disable-interpreters.inc 14include disable-interpreters.inc
17include disable-passwdmgr.inc 15include disable-passwdmgr.inc
18include disable-programs.inc 16include disable-programs.inc
19include disable-xdg.inc
20 17
18read-only ${DESKTOP}
19mkdir ${HOME}/.mplayer
20whitelist ${HOME}/.mplayer
21whitelist ${DESKTOP}
22whitelist ${DOWNLOADS}
23whitelist ${MUSIC}
24whitelist ${PICTURES}
25whitelist ${VIDEOS}
26include whitelist-common.inc
21include whitelist-usr-share-common.inc 27include whitelist-usr-share-common.inc
22include whitelist-var-common.inc 28include whitelist-var-common.inc
23 29
@@ -36,4 +42,3 @@ shell none
36private-bin mplayer 42private-bin mplayer
37private-dev 43private-dev
38private-tmp 44private-tmp
39
diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile
index 2fc027257..5ca684eb5 100644
--- a/etc/profile-m-z/mpv.profile
+++ b/etc/profile-m-z/mpv.profile
@@ -7,6 +7,10 @@ include mpv.local
7# Persistent global definitions 7# Persistent global definitions
8include globals.local 8include globals.local
9 9
10# In order to save screenshots to a persistent location,
11# edit ~/.config/mpv/foobar.conf:
12# screenshot-directory=~/Pictures
13
10noblacklist ${HOME}/.config/mpv 14noblacklist ${HOME}/.config/mpv
11noblacklist ${HOME}/.config/youtube-dl 15noblacklist ${HOME}/.config/youtube-dl
12noblacklist ${HOME}/.netrc 16noblacklist ${HOME}/.netrc
@@ -17,10 +21,6 @@ include allow-lua.inc
17include allow-python2.inc 21include allow-python2.inc
18include allow-python3.inc 22include allow-python3.inc
19 23
20noblacklist ${MUSIC}
21noblacklist ${PICTURES}
22noblacklist ${VIDEOS}
23
24include disable-common.inc 24include disable-common.inc
25include disable-devel.inc 25include disable-devel.inc
26include disable-exec.inc 26include disable-exec.inc
@@ -28,8 +28,20 @@ include disable-interpreters.inc
28include disable-passwdmgr.inc 28include disable-passwdmgr.inc
29include disable-programs.inc 29include disable-programs.inc
30include disable-shell.inc 30include disable-shell.inc
31include disable-xdg.inc
32 31
32read-only ${DESKTOP}
33mkdir ${HOME}/.config/mpv
34mkdir ${HOME}/.config/youtube-dl
35mkfile ${HOME}/.netrc
36whitelist ${HOME}/.config/mpv
37whitelist ${HOME}/.config/youtube-dl
38whitelist ${HOME}/.netrc
39whitelist ${DESKTOP}
40whitelist ${DOWNLOADS}
41whitelist ${MUSIC}
42whitelist ${PICTURES}
43whitelist ${VIDEOS}
44include whitelist-common.inc
33whitelist /usr/share/lua 45whitelist /usr/share/lua
34whitelist /usr/share/lua* 46whitelist /usr/share/lua*
35whitelist /usr/share/vulkan 47whitelist /usr/share/vulkan
diff --git a/etc/profile-m-z/nomacs.profile b/etc/profile-m-z/nomacs.profile
index 7a7ff504a..d081c9cb7 100644
--- a/etc/profile-m-z/nomacs.profile
+++ b/etc/profile-m-z/nomacs.profile
@@ -43,5 +43,3 @@ private-cache
43private-dev 43private-dev
44private-etc alternatives,ca-certificates,crypto-policies,dconf,drirc,fonts,gtk-3.0,hosts,login.defs,machine-id,pki,resolv.conf,ssl 44private-etc alternatives,ca-certificates,crypto-policies,dconf,drirc,fonts,gtk-3.0,hosts,login.defs,machine-id,pki,resolv.conf,ssl
45private-tmp 45private-tmp
46
47memory-deny-write-execute
diff --git a/etc/profile-m-z/signal-desktop.profile b/etc/profile-m-z/signal-desktop.profile
index b51a86e7d..c28571270 100644
--- a/etc/profile-m-z/signal-desktop.profile
+++ b/etc/profile-m-z/signal-desktop.profile
@@ -34,7 +34,6 @@ nodvd
34nogroups 34nogroups
35notv 35notv
36nou2f 36nou2f
37novideo
38shell none 37shell none
39 38
40disable-mnt 39disable-mnt
diff --git a/etc/profile-m-z/totem.profile b/etc/profile-m-z/totem.profile
index b8f4ca765..abbbba6c3 100644
--- a/etc/profile-m-z/totem.profile
+++ b/etc/profile-m-z/totem.profile
@@ -14,9 +14,6 @@ include allow-python3.inc
14 14
15noblacklist ${HOME}/.config/totem 15noblacklist ${HOME}/.config/totem
16noblacklist ${HOME}/.local/share/totem 16noblacklist ${HOME}/.local/share/totem
17noblacklist ${MUSIC}
18noblacklist ${PICTURES}
19noblacklist ${VIDEOS}
20 17
21include disable-common.inc 18include disable-common.inc
22include disable-devel.inc 19include disable-devel.inc
@@ -25,8 +22,18 @@ include disable-interpreters.inc
25include disable-passwdmgr.inc 22include disable-passwdmgr.inc
26include disable-programs.inc 23include disable-programs.inc
27include disable-shell.inc 24include disable-shell.inc
28include disable-xdg.inc
29 25
26read-only ${DESKTOP}
27mkdir ${HOME}/.config/totem
28mkdir ${HOME}/.local/share/totem
29whitelist ${HOME}/.config/totem
30whitelist ${HOME}/.local/share/totem
31whitelist ${DESKTOP}
32whitelist ${DOWNLOADS}
33whitelist ${MUSIC}
34whitelist ${PICTURES}
35whitelist ${VIDEOS}
36include whitelist-common.inc
30include whitelist-var-common.inc 37include whitelist-var-common.inc
31 38
32# apparmor - makes settings immutable 39# apparmor - makes settings immutable
diff --git a/etc/profile-m-z/vlc.profile b/etc/profile-m-z/vlc.profile
index 0069ebeae..07a1b5fc0 100644
--- a/etc/profile-m-z/vlc.profile
+++ b/etc/profile-m-z/vlc.profile
@@ -9,8 +9,6 @@ include globals.local
9noblacklist ${HOME}/.cache/vlc 9noblacklist ${HOME}/.cache/vlc
10noblacklist ${HOME}/.config/vlc 10noblacklist ${HOME}/.config/vlc
11noblacklist ${HOME}/.local/share/vlc 11noblacklist ${HOME}/.local/share/vlc
12noblacklist ${MUSIC}
13noblacklist ${VIDEOS}
14 12
15include disable-common.inc 13include disable-common.inc
16include disable-devel.inc 14include disable-devel.inc
@@ -18,8 +16,20 @@ include disable-exec.inc
18include disable-interpreters.inc 16include disable-interpreters.inc
19include disable-passwdmgr.inc 17include disable-passwdmgr.inc
20include disable-programs.inc 18include disable-programs.inc
21include disable-xdg.inc
22 19
20read-only ${DESKTOP}
21mkdir ${HOME}/.cache/vlc
22mkdir ${HOME}/.config/vlc
23mkdir ${HOME}/.local/share/vlc
24whitelist ${HOME}/.cache/vlc
25whitelist ${HOME}/.config/vlc
26whitelist ${HOME}/.local/share/vlc
27whitelist ${DESKTOP}
28whitelist ${DOWNLOADS}
29whitelist ${MUSIC}
30whitelist ${PICTURES}
31whitelist ${VIDEOS}
32include whitelist-common.inc
23include whitelist-var-common.inc 33include whitelist-var-common.inc
24 34
25#apparmor - on Ubuntu 18.04 it refuses to start without dbus access 35#apparmor - on Ubuntu 18.04 it refuses to start without dbus access
diff --git a/etc/profile-m-z/xplayer.profile b/etc/profile-m-z/xplayer.profile
index 28df73ea5..555d8e9a4 100644
--- a/etc/profile-m-z/xplayer.profile
+++ b/etc/profile-m-z/xplayer.profile
@@ -7,8 +7,6 @@ include globals.local
7 7
8noblacklist ${HOME}/.config/xplayer 8noblacklist ${HOME}/.config/xplayer
9noblacklist ${HOME}/.local/share/xplayer 9noblacklist ${HOME}/.local/share/xplayer
10noblacklist ${MUSIC}
11noblacklist ${VIDEOS}
12 10
13# Allow python (blacklisted by disable-interpreters.inc) 11# Allow python (blacklisted by disable-interpreters.inc)
14include allow-python2.inc 12include allow-python2.inc
@@ -20,8 +18,18 @@ include disable-exec.inc
20include disable-interpreters.inc 18include disable-interpreters.inc
21include disable-passwdmgr.inc 19include disable-passwdmgr.inc
22include disable-programs.inc 20include disable-programs.inc
23include disable-xdg.inc
24 21
22read-only ${DESKTOP}
23mkdir ${HOME}/.config/xplayer
24mkdir ${HOME}/.local/share/xplayer
25whitelist ${HOME}/.config/xplayer
26whitelist ${HOME}/.local/share/xplayer
27whitelist ${DESKTOP}
28whitelist ${DOWNLOADS}
29whitelist ${MUSIC}
30whitelist ${PICTURES}
31whitelist ${VIDEOS}
32include whitelist-common.inc
25include whitelist-var-common.inc 33include whitelist-var-common.inc
26 34
27# apparmor - makes settings immutable 35# apparmor - makes settings immutable
diff --git a/etc/profile-m-z/youtube-viewer.profile b/etc/profile-m-z/youtube-viewer.profile
new file mode 100644
index 000000000..513cb0f6e
--- /dev/null
+++ b/etc/profile-m-z/youtube-viewer.profile
@@ -0,0 +1,57 @@
1# Firejail profile for youtube-viewer
2# Description: Trizen's CLI Youtube viewer with login support
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include youtube-viewer.local
7# Persistent global definitions
8include globals.local
9
10blacklist /tmp/.X11-unix
11blacklist ${RUNUSER}/wayland-*
12blacklist ${RUNUSER}
13
14noblacklist ${HOME}/.config/youtube-viewer
15
16include allow-perl.inc
17include allow-python2.inc
18include allow-python3.inc
19
20include disable-common.inc
21include disable-devel.inc
22include disable-exec.inc
23include disable-interpreters.inc
24include disable-passwdmgr.inc
25include disable-programs.inc
26include disable-xdg.inc
27
28mkdir ${HOME}/.config/youtube-viewer
29whitelist ${HOME}/.config/youtube-viewer
30include whitelist-common.inc
31include whitelist-usr-share-common.inc
32include whitelist-var-common.inc
33
34apparmor
35caps.drop all
36netfilter
37nodvd
38nogroups
39nonewprivs
40noroot
41notv
42nou2f
43novideo
44protocol unix,inet,inet6
45seccomp
46shell none
47tracelog
48
49disable-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
51private-cache
52private-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
54private-tmp
55
56dbus-user none
57dbus-system none \ No newline at end of file