From e2514aa5d819532c26588a0332e7e80783724b20 Mon Sep 17 00:00:00 2001 From: smitsohu Date: Wed, 18 Apr 2018 23:24:19 +0200 Subject: allow python in some profiles --- etc/disable-programs.inc | 1 + etc/flowblade.profile | 6 ++++++ etc/openshot.profile | 6 ++++++ etc/ranger.profile | 10 +++++++++- etc/uzbl-browser.profile | 7 +++++++ 5 files changed, 29 insertions(+), 1 deletion(-) diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index b68dde0c4..eddb12e08 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc @@ -429,6 +429,7 @@ blacklist ${HOME}/.local/share/telepathy blacklist ${HOME}/.local/share/terasology blacklist ${HOME}/.local/share/torbrowser blacklist ${HOME}/.local/share/totem +blacklist ${HOME}/.local/share/uzbl blacklist ${HOME}/.local/share/vlc blacklist ${HOME}/.local/share/vpltd blacklist ${HOME}/.local/share/vulkan diff --git a/etc/flowblade.profile b/etc/flowblade.profile index bad8538cf..e06107f0f 100644 --- a/etc/flowblade.profile +++ b/etc/flowblade.profile @@ -8,6 +8,12 @@ include /etc/firejail/globals.local noblacklist ${HOME}/.config/flowblade noblacklist ${HOME}/.flowblade +# Allow python (blacklisted by disable-interpreters.inc) +noblacklist ${PATH}/python2* +noblacklist ${PATH}/python3* +noblacklist /usr/lib/python2* +noblacklist /usr/lib/python3* + include /etc/firejail/disable-common.inc include /etc/firejail/disable-devel.inc include /etc/firejail/disable-interpreters.inc diff --git a/etc/openshot.profile b/etc/openshot.profile index 114580f1e..832008564 100644 --- a/etc/openshot.profile +++ b/etc/openshot.profile @@ -8,6 +8,12 @@ include /etc/firejail/globals.local noblacklist ${HOME}/.openshot noblacklist ${HOME}/.openshot_qt +# Allow python (blacklisted by disable-interpreters.inc) +noblacklist ${PATH}/python2* +noblacklist ${PATH}/python3* +noblacklist /usr/lib/python2* +noblacklist /usr/lib/python3* + include /etc/firejail/disable-common.inc include /etc/firejail/disable-devel.inc include /etc/firejail/disable-interpreters.inc diff --git a/etc/ranger.profile b/etc/ranger.profile index 94b282669..ff65a057b 100644 --- a/etc/ranger.profile +++ b/etc/ranger.profile @@ -5,11 +5,19 @@ include /etc/firejail/ranger.local # Persistent global definitions include /etc/firejail/globals.local +noblacklist ${HOME}/.config/ranger + +# Allow python (blacklisted by disable-interpreters.inc) +noblacklist ${PATH}/python2* +noblacklist ${PATH}/python3* +noblacklist /usr/lib/python2* +noblacklist /usr/lib/python3* + +# Allow perl # noblacklist ${PATH}/cpan* noblacklist ${PATH}/perl noblacklist /usr/lib/perl* noblacklist /usr/share/perl* -noblacklist ${HOME}/.config/ranger include /etc/firejail/disable-common.inc include /etc/firejail/disable-devel.inc diff --git a/etc/uzbl-browser.profile b/etc/uzbl-browser.profile index 0a3549c97..b8a3fa497 100644 --- a/etc/uzbl-browser.profile +++ b/etc/uzbl-browser.profile @@ -7,6 +7,13 @@ include /etc/firejail/globals.local noblacklist ${HOME}/.config/uzbl noblacklist ${HOME}/.gnupg +noblacklist ${HOME}/.local/share/uzbl + +# Allow python (blacklisted by disable-interpreters.inc) +noblacklist ${PATH}/python2* +noblacklist ${PATH}/python3* +noblacklist /usr/lib/python2* +noblacklist /usr/lib/python3* include /etc/firejail/disable-common.inc include /etc/firejail/disable-devel.inc -- cgit v1.2.3-70-g09d2