diff options
author | Fred Barclay <Fred-Barclay@users.noreply.github.com> | 2020-08-15 17:27:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-15 17:27:10 -0500 |
commit | 5d741795c3bb2060730e282a8f512b999418e098 (patch) | |
tree | 8ff4e8937c10e995b54869ff82effbc73b888fca /etc/profile-m-z/xplayer.profile | |
parent | Merge pull request #3559 from smitsohu/smitsohu-bandwidth (diff) | |
download | firejail-5d741795c3bb2060730e282a8f512b999418e098.tar.gz firejail-5d741795c3bb2060730e282a8f512b999418e098.tar.zst firejail-5d741795c3bb2060730e282a8f512b999418e098.zip |
Use whitelisting for video players (#3472)
* Use whitelisting for video players
See https://github.com/netblue30/firejail/pull/3469
* Update media player whitelists
See reviews at https://github.com/netblue30/firejail/pull/3472
Block $DOCUMENTS
Make $DESKTOP read-only
* Review fixes: include read-only Desktop in whitelist
Diffstat (limited to 'etc/profile-m-z/xplayer.profile')
-rw-r--r-- | etc/profile-m-z/xplayer.profile | 14 |
1 files changed, 11 insertions, 3 deletions
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 | ||
8 | noblacklist ${HOME}/.config/xplayer | 8 | noblacklist ${HOME}/.config/xplayer |
9 | noblacklist ${HOME}/.local/share/xplayer | 9 | noblacklist ${HOME}/.local/share/xplayer |
10 | noblacklist ${MUSIC} | ||
11 | noblacklist ${VIDEOS} | ||
12 | 10 | ||
13 | # Allow python (blacklisted by disable-interpreters.inc) | 11 | # Allow python (blacklisted by disable-interpreters.inc) |
14 | include allow-python2.inc | 12 | include allow-python2.inc |
@@ -20,8 +18,18 @@ include disable-exec.inc | |||
20 | include disable-interpreters.inc | 18 | include disable-interpreters.inc |
21 | include disable-passwdmgr.inc | 19 | include disable-passwdmgr.inc |
22 | include disable-programs.inc | 20 | include disable-programs.inc |
23 | include disable-xdg.inc | ||
24 | 21 | ||
22 | read-only ${DESKTOP} | ||
23 | mkdir ${HOME}/.config/xplayer | ||
24 | mkdir ${HOME}/.local/share/xplayer | ||
25 | whitelist ${HOME}/.config/xplayer | ||
26 | whitelist ${HOME}/.local/share/xplayer | ||
27 | whitelist ${DESKTOP} | ||
28 | whitelist ${DOWNLOADS} | ||
29 | whitelist ${MUSIC} | ||
30 | whitelist ${PICTURES} | ||
31 | whitelist ${VIDEOS} | ||
32 | include whitelist-common.inc | ||
25 | include whitelist-var-common.inc | 33 | include whitelist-var-common.inc |
26 | 34 | ||
27 | # apparmor - makes settings immutable | 35 | # apparmor - makes settings immutable |