diff options
author | Kishore96in <kishore96@gmail.com> | 2020-07-16 12:53:10 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 07:23:10 +0000 |
commit | 319f2dc8d65fe0264e4eb6006aab024751bb5bd4 (patch) | |
tree | c89ff5a1ff396550d1c7e2398d1b6e17fcbe2ff6 /etc/profile-a-l/kcalc.profile | |
parent | fix keepassxc (diff) | |
download | firejail-319f2dc8d65fe0264e4eb6006aab024751bb5bd4.tar.gz firejail-319f2dc8d65fe0264e4eb6006aab024751bb5bd4.tar.zst firejail-319f2dc8d65fe0264e4eb6006aab024751bb5bd4.zip |
Blacklist .local/share/kxmlgui5 and allow access only for applications which use it. (#3493)
* blacklist .local/share/kxmlgui5
KDE programs use this to store their toolbar config.
* noblacklist .local/share/kxmlgui5 in the relevant KDE applications.
* Whitelist kxmlgui file for okular.
* Use a glob to blacklist subfolders instead of the parent folder.
noblacklisting individual subdirectories works only if we do it this way
(tested by launching bash in the kate profile).
* Make directory, not file.
* noblacklist relevant subdirs for more KDE applications
Diffstat (limited to 'etc/profile-a-l/kcalc.profile')
-rw-r--r-- | etc/profile-a-l/kcalc.profile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/profile-a-l/kcalc.profile b/etc/profile-a-l/kcalc.profile index 683ee08bd..fa82e76f3 100644 --- a/etc/profile-a-l/kcalc.profile +++ b/etc/profile-a-l/kcalc.profile | |||
@@ -6,6 +6,7 @@ include kcalc.local | |||
6 | # Persistent global definitions | 6 | # Persistent global definitions |
7 | include globals.local | 7 | include globals.local |
8 | 8 | ||
9 | noblacklist ${HOME}/.local/share/kxmlgui5/kcalc | ||
9 | 10 | ||
10 | include disable-common.inc | 11 | include disable-common.inc |
11 | include disable-devel.inc | 12 | include disable-devel.inc |
@@ -15,12 +16,14 @@ include disable-passwdmgr.inc | |||
15 | include disable-programs.inc | 16 | include disable-programs.inc |
16 | include disable-shell.inc | 17 | include disable-shell.inc |
17 | 18 | ||
19 | mkdir ${HOME}/.local/share/kxmlgui5/kcalc | ||
18 | mkfile ${HOME}/.config/kcalcrc | 20 | mkfile ${HOME}/.config/kcalcrc |
19 | mkfile ${HOME}/.kde/share/config/kcalcrc | 21 | mkfile ${HOME}/.kde/share/config/kcalcrc |
20 | mkfile ${HOME}/.kde4/share/config/kcalcrc | 22 | mkfile ${HOME}/.kde4/share/config/kcalcrc |
21 | whitelist ${HOME}/.config/kcalcrc | 23 | whitelist ${HOME}/.config/kcalcrc |
22 | whitelist ${HOME}/.kde/share/config/kcalcrc | 24 | whitelist ${HOME}/.kde/share/config/kcalcrc |
23 | whitelist ${HOME}/.kde4/share/config/kcalcrc | 25 | whitelist ${HOME}/.kde4/share/config/kcalcrc |
26 | whitelist ${HOME}/.local/share/kxmlgui5/kcalc | ||
24 | include whitelist-common.inc | 27 | include whitelist-common.inc |
25 | include whitelist-var-common.inc | 28 | include whitelist-var-common.inc |
26 | 29 | ||