aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-06 19:27:20 +0000
committerLibravatar GitHub <noreply@github.com>2023-08-06 19:27:20 +0000
commitfb39e08da19903c5cfba504c2db25935463725df (patch)
treea93a66e30ea7cd377d1e8572ea8a586ef9122a2f
parentmpv.profile: add new XDG_STATE_HOME path (diff)
parentprofiles: add cache/state paths for mpv (diff)
downloadfirejail-fb39e08da19903c5cfba504c2db25935463725df.tar.gz
firejail-fb39e08da19903c5cfba504c2db25935463725df.tar.zst
firejail-fb39e08da19903c5cfba504c2db25935463725df.zip
Merge pull request #5941 from kmk3/mpv-add-cache
mpv.profile: add XDG_CACHE_HOME & missing paths
-rw-r--r--etc/inc/disable-programs.inc1
-rw-r--r--etc/profile-a-l/chatterino.profile2
-rw-r--r--etc/profile-a-l/firefox-common-addons.profile4
-rw-r--r--etc/profile-m-z/QMediathekView.profile4
-rw-r--r--etc/profile-m-z/mediathekview.profile2
-rw-r--r--etc/profile-m-z/mpsyt.profile6
-rw-r--r--etc/profile-m-z/mpv.profile3
-rw-r--r--etc/profile-m-z/rtv-addons.profile4
-rw-r--r--etc/profile-m-z/smtube.profile6
-rw-r--r--etc/profile-m-z/youtube-viewers-common.profile2
10 files changed, 30 insertions, 4 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index d2ae55867..4dac9e3e4 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -171,6 +171,7 @@ blacklist ${HOME}/.cache/mirage
171blacklist ${HOME}/.cache/moonchild productions/basilisk 171blacklist ${HOME}/.cache/moonchild productions/basilisk
172blacklist ${HOME}/.cache/moonchild productions/pale moon 172blacklist ${HOME}/.cache/moonchild productions/pale moon
173blacklist ${HOME}/.cache/mozilla 173blacklist ${HOME}/.cache/mozilla
174blacklist ${HOME}/.cache/mpv
174blacklist ${HOME}/.cache/ms-excel-online 175blacklist ${HOME}/.cache/ms-excel-online
175blacklist ${HOME}/.cache/ms-office-online 176blacklist ${HOME}/.cache/ms-office-online
176blacklist ${HOME}/.cache/ms-onenote-online 177blacklist ${HOME}/.cache/ms-onenote-online
diff --git a/etc/profile-a-l/chatterino.profile b/etc/profile-a-l/chatterino.profile
index 2df03b10b..2a77b6fd6 100644
--- a/etc/profile-a-l/chatterino.profile
+++ b/etc/profile-a-l/chatterino.profile
@@ -12,11 +12,13 @@ include globals.local
12#whitelist ${MUSIC} 12#whitelist ${MUSIC}
13 13
14# Also allow access to mpv/vlc, they're usable via streamlink. 14# Also allow access to mpv/vlc, they're usable via streamlink.
15noblacklist ${HOME}/.cache/mpv
15noblacklist ${HOME}/.config/mpv 16noblacklist ${HOME}/.config/mpv
16noblacklist ${HOME}/.config/pulse 17noblacklist ${HOME}/.config/pulse
17noblacklist ${HOME}/.config/vlc 18noblacklist ${HOME}/.config/vlc
18noblacklist ${HOME}/.local/share/chatterino 19noblacklist ${HOME}/.local/share/chatterino
19noblacklist ${HOME}/.local/share/vlc 20noblacklist ${HOME}/.local/share/vlc
21noblacklist ${HOME}/.local/state/mpv
20 22
21# Allow Lua for mpv (blacklisted by disable-interpreters.inc) 23# Allow Lua for mpv (blacklisted by disable-interpreters.inc)
22include allow-lua.inc 24include allow-lua.inc
diff --git a/etc/profile-a-l/firefox-common-addons.profile b/etc/profile-a-l/firefox-common-addons.profile
index f12750fda..566e88bf8 100644
--- a/etc/profile-a-l/firefox-common-addons.profile
+++ b/etc/profile-a-l/firefox-common-addons.profile
@@ -11,6 +11,7 @@ ignore include whitelist-runuser-common.inc
11 11
12ignore private-cache 12ignore private-cache
13 13
14noblacklist ${HOME}/.cache/mpv
14noblacklist ${HOME}/.cache/youtube-dl 15noblacklist ${HOME}/.cache/youtube-dl
15noblacklist ${HOME}/.config/kgetrc 16noblacklist ${HOME}/.config/kgetrc
16noblacklist ${HOME}/.config/mpv 17noblacklist ${HOME}/.config/mpv
@@ -32,9 +33,11 @@ noblacklist ${HOME}/.local/share/kget
32noblacklist ${HOME}/.local/share/kxmlgui5/okular 33noblacklist ${HOME}/.local/share/kxmlgui5/okular
33noblacklist ${HOME}/.local/share/okular 34noblacklist ${HOME}/.local/share/okular
34noblacklist ${HOME}/.local/share/qpdfview 35noblacklist ${HOME}/.local/share/qpdfview
36noblacklist ${HOME}/.local/state/mpv
35noblacklist ${HOME}/.netrc 37noblacklist ${HOME}/.netrc
36 38
37whitelist ${HOME}/.cache/gnome-mplayer/plugin 39whitelist ${HOME}/.cache/gnome-mplayer/plugin
40whitelist ${HOME}/.cache/mpv
38whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs 41whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
39whitelist ${HOME}/.config/gnome-mplayer 42whitelist ${HOME}/.config/gnome-mplayer
40whitelist ${HOME}/.config/kgetrc 43whitelist ${HOME}/.config/kgetrc
@@ -62,6 +65,7 @@ whitelist ${HOME}/.local/share/kxmlgui5/okular
62whitelist ${HOME}/.local/share/okular 65whitelist ${HOME}/.local/share/okular
63whitelist ${HOME}/.local/share/qpdfview 66whitelist ${HOME}/.local/share/qpdfview
64whitelist ${HOME}/.local/share/tridactyl 67whitelist ${HOME}/.local/share/tridactyl
68whitelist ${HOME}/.local/state/mpv
65whitelist ${HOME}/.netrc 69whitelist ${HOME}/.netrc
66whitelist ${HOME}/.pentadactyl 70whitelist ${HOME}/.pentadactyl
67whitelist ${HOME}/.pentadactylrc 71whitelist ${HOME}/.pentadactylrc
diff --git a/etc/profile-m-z/QMediathekView.profile b/etc/profile-m-z/QMediathekView.profile
index f8b5cec13..0e18b3cdf 100644
--- a/etc/profile-m-z/QMediathekView.profile
+++ b/etc/profile-m-z/QMediathekView.profile
@@ -9,6 +9,7 @@ include globals.local
9noblacklist ${HOME}/.config/QMediathekView 9noblacklist ${HOME}/.config/QMediathekView
10noblacklist ${HOME}/.local/share/QMediathekView 10noblacklist ${HOME}/.local/share/QMediathekView
11 11
12noblacklist ${HOME}/.cache/mpv
12noblacklist ${HOME}/.config/mpv 13noblacklist ${HOME}/.config/mpv
13noblacklist ${HOME}/.config/smplayer 14noblacklist ${HOME}/.config/smplayer
14noblacklist ${HOME}/.config/totem 15noblacklist ${HOME}/.config/totem
@@ -16,6 +17,7 @@ noblacklist ${HOME}/.config/vlc
16noblacklist ${HOME}/.config/xplayer 17noblacklist ${HOME}/.config/xplayer
17noblacklist ${HOME}/.local/share/totem 18noblacklist ${HOME}/.local/share/totem
18noblacklist ${HOME}/.local/share/xplayer 19noblacklist ${HOME}/.local/share/xplayer
20noblacklist ${HOME}/.local/state/mpv
19noblacklist ${HOME}/.mplayer 21noblacklist ${HOME}/.mplayer
20noblacklist ${VIDEOS} 22noblacklist ${VIDEOS}
21 23
@@ -35,6 +37,7 @@ whitelist ${HOME}/.local/share/QMediathekView
35whitelist ${DOWNLOADS} 37whitelist ${DOWNLOADS}
36whitelist ${VIDEOS} 38whitelist ${VIDEOS}
37 39
40whitelist ${HOME}/.cache/mpv
38whitelist ${HOME}/.config/mpv 41whitelist ${HOME}/.config/mpv
39whitelist ${HOME}/.config/smplayer 42whitelist ${HOME}/.config/smplayer
40whitelist ${HOME}/.config/totem 43whitelist ${HOME}/.config/totem
@@ -42,6 +45,7 @@ whitelist ${HOME}/.config/vlc
42whitelist ${HOME}/.config/xplayer 45whitelist ${HOME}/.config/xplayer
43whitelist ${HOME}/.local/share/totem 46whitelist ${HOME}/.local/share/totem
44whitelist ${HOME}/.local/share/xplayer 47whitelist ${HOME}/.local/share/xplayer
48whitelist ${HOME}/.local/state/mpv
45whitelist ${HOME}/.mplayer 49whitelist ${HOME}/.mplayer
46whitelist /usr/share/qtchooser 50whitelist /usr/share/qtchooser
47include whitelist-common.inc 51include whitelist-common.inc
diff --git a/etc/profile-m-z/mediathekview.profile b/etc/profile-m-z/mediathekview.profile
index 19ce6fcd1..ef0c8bcc9 100644
--- a/etc/profile-m-z/mediathekview.profile
+++ b/etc/profile-m-z/mediathekview.profile
@@ -6,6 +6,7 @@ include mediathekview.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.cache/mpv
9noblacklist ${HOME}/.config/mpv 10noblacklist ${HOME}/.config/mpv
10noblacklist ${HOME}/.config/smplayer 11noblacklist ${HOME}/.config/smplayer
11noblacklist ${HOME}/.config/totem 12noblacklist ${HOME}/.config/totem
@@ -13,6 +14,7 @@ noblacklist ${HOME}/.config/vlc
13noblacklist ${HOME}/.config/xplayer 14noblacklist ${HOME}/.config/xplayer
14noblacklist ${HOME}/.local/share/totem 15noblacklist ${HOME}/.local/share/totem
15noblacklist ${HOME}/.local/share/xplayer 16noblacklist ${HOME}/.local/share/xplayer
17noblacklist ${HOME}/.local/state/mpv
16noblacklist ${HOME}/.mediathek3 18noblacklist ${HOME}/.mediathek3
17noblacklist ${HOME}/.mplayer 19noblacklist ${HOME}/.mplayer
18noblacklist ${VIDEOS} 20noblacklist ${VIDEOS}
diff --git a/etc/profile-m-z/mpsyt.profile b/etc/profile-m-z/mpsyt.profile
index e73e3142c..e4f76855e 100644
--- a/etc/profile-m-z/mpsyt.profile
+++ b/etc/profile-m-z/mpsyt.profile
@@ -6,9 +6,11 @@ include mpsyt.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.cache/mpv
9noblacklist ${HOME}/.config/mps-youtube 10noblacklist ${HOME}/.config/mps-youtube
10noblacklist ${HOME}/.config/mpv 11noblacklist ${HOME}/.config/mpv
11noblacklist ${HOME}/.config/youtube-dl 12noblacklist ${HOME}/.config/youtube-dl
13noblacklist ${HOME}/.local/state/mpv
12noblacklist ${HOME}/.mplayer 14noblacklist ${HOME}/.mplayer
13noblacklist ${HOME}/.netrc 15noblacklist ${HOME}/.netrc
14noblacklist ${HOME}/mps 16noblacklist ${HOME}/mps
@@ -32,13 +34,13 @@ include disable-shell.inc
32include disable-xdg.inc 34include disable-xdg.inc
33 35
34mkdir ${HOME}/.config/mps-youtube 36mkdir ${HOME}/.config/mps-youtube
35mkdir ${HOME}/.config/mpv
36mkdir ${HOME}/.config/youtube-dl
37mkdir ${HOME}/.mplayer 37mkdir ${HOME}/.mplayer
38mkdir ${HOME}/mps 38mkdir ${HOME}/mps
39whitelist ${HOME}/.cache/mpv
39whitelist ${HOME}/.config/mps-youtube 40whitelist ${HOME}/.config/mps-youtube
40whitelist ${HOME}/.config/mpv 41whitelist ${HOME}/.config/mpv
41whitelist ${HOME}/.config/youtube-dl 42whitelist ${HOME}/.config/youtube-dl
43whitelist ${HOME}/.local/state/mpv
42whitelist ${HOME}/.mplayer 44whitelist ${HOME}/.mplayer
43whitelist ${HOME}/.netrc 45whitelist ${HOME}/.netrc
44whitelist ${HOME}/mps 46whitelist ${HOME}/mps
diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile
index d1bbdd167..af8f00c0c 100644
--- a/etc/profile-m-z/mpv.profile
+++ b/etc/profile-m-z/mpv.profile
@@ -24,6 +24,7 @@ include globals.local
24#include allow-bin-sh.inc 24#include allow-bin-sh.inc
25#private-bin sh 25#private-bin sh
26 26
27noblacklist ${HOME}/.cache/mpv
27noblacklist ${HOME}/.config/mpv 28noblacklist ${HOME}/.config/mpv
28noblacklist ${HOME}/.config/youtube-dl 29noblacklist ${HOME}/.config/youtube-dl
29noblacklist ${HOME}/.config/yt-dlp 30noblacklist ${HOME}/.config/yt-dlp
@@ -50,9 +51,11 @@ include disable-programs.inc
50include disable-shell.inc 51include disable-shell.inc
51 52
52read-only ${DESKTOP} 53read-only ${DESKTOP}
54mkdir ${HOME}/.cache/mpv
53mkdir ${HOME}/.config/mpv 55mkdir ${HOME}/.config/mpv
54mkdir ${HOME}/.local/state/mpv 56mkdir ${HOME}/.local/state/mpv
55mkfile ${HOME}/.netrc 57mkfile ${HOME}/.netrc
58whitelist ${HOME}/.cache/mpv
56whitelist ${HOME}/.config/mpv 59whitelist ${HOME}/.config/mpv
57whitelist ${HOME}/.config/youtube-dl 60whitelist ${HOME}/.config/youtube-dl
58whitelist ${HOME}/.config/yt-dlp 61whitelist ${HOME}/.config/yt-dlp
diff --git a/etc/profile-m-z/rtv-addons.profile b/etc/profile-m-z/rtv-addons.profile
index cc6db5043..3098cf0a0 100644
--- a/etc/profile-m-z/rtv-addons.profile
+++ b/etc/profile-m-z/rtv-addons.profile
@@ -11,13 +11,17 @@ ignore nosound
11ignore private-bin 11ignore private-bin
12ignore dbus-user none 12ignore dbus-user none
13 13
14noblacklist ${HOME}/.cache/mpv
14noblacklist ${HOME}/.config/mpv 15noblacklist ${HOME}/.config/mpv
16noblacklist ${HOME}/.local/state/mpv
15noblacklist ${HOME}/.mailcap 17noblacklist ${HOME}/.mailcap
16noblacklist ${HOME}/.netrc 18noblacklist ${HOME}/.netrc
17noblacklist ${HOME}/.w3m 19noblacklist ${HOME}/.w3m
18 20
21whitelist ${HOME}/.cache/mpv
19whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs 22whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
20whitelist ${HOME}/.config/mpv 23whitelist ${HOME}/.config/mpv
24whitelist ${HOME}/.local/state/mpv
21whitelist ${HOME}/.mailcap 25whitelist ${HOME}/.mailcap
22whitelist ${HOME}/.netrc 26whitelist ${HOME}/.netrc
23whitelist ${HOME}/.w3m 27whitelist ${HOME}/.w3m
diff --git a/etc/profile-m-z/smtube.profile b/etc/profile-m-z/smtube.profile
index b617444af..7debd4057 100644
--- a/etc/profile-m-z/smtube.profile
+++ b/etc/profile-m-z/smtube.profile
@@ -6,12 +6,14 @@ include smtube.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.cache/mpv
10noblacklist ${HOME}/.config/mpv
9noblacklist ${HOME}/.config/smplayer 11noblacklist ${HOME}/.config/smplayer
10noblacklist ${HOME}/.config/smtube 12noblacklist ${HOME}/.config/smtube
11noblacklist ${HOME}/.config/mpv
12noblacklist ${HOME}/.mplayer
13noblacklist ${HOME}/.config/vlc 13noblacklist ${HOME}/.config/vlc
14noblacklist ${HOME}/.local/share/vlc 14noblacklist ${HOME}/.local/share/vlc
15noblacklist ${HOME}/.local/state/mpv
16noblacklist ${HOME}/.mplayer
15noblacklist ${MUSIC} 17noblacklist ${MUSIC}
16noblacklist ${VIDEOS} 18noblacklist ${VIDEOS}
17 19
diff --git a/etc/profile-m-z/youtube-viewers-common.profile b/etc/profile-m-z/youtube-viewers-common.profile
index c9d2ea53b..5950c3639 100644
--- a/etc/profile-m-z/youtube-viewers-common.profile
+++ b/etc/profile-m-z/youtube-viewers-common.profile
@@ -7,8 +7,10 @@ include youtube-viewers-common.local
7# added by caller profile 7# added by caller profile
8#include globals.local 8#include globals.local
9 9
10noblacklist ${HOME}/.cache/mpv
10noblacklist ${HOME}/.cache/youtube-dl 11noblacklist ${HOME}/.cache/youtube-dl
11noblacklist ${HOME}/.config/mpv 12noblacklist ${HOME}/.config/mpv
13noblacklist ${HOME}/.local/state/mpv
12 14
13# Allow lua (blacklisted by disable-interpreters.inc) 15# Allow lua (blacklisted by disable-interpreters.inc)
14include allow-lua.inc 16include allow-lua.inc