aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-a-l
diff options
context:
space:
mode:
authorLibravatar Kishore96in <kishore96@gmail.com>2020-07-16 12:53:10 +0530
committerLibravatar GitHub <noreply@github.com>2020-07-16 07:23:10 +0000
commit319f2dc8d65fe0264e4eb6006aab024751bb5bd4 (patch)
treec89ff5a1ff396550d1c7e2398d1b6e17fcbe2ff6 /etc/profile-a-l
parentfix keepassxc (diff)
downloadfirejail-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')
-rw-r--r--etc/profile-a-l/akregator.profile3
-rw-r--r--etc/profile-a-l/ark.profile1
-rw-r--r--etc/profile-a-l/calligra.profile2
-rw-r--r--etc/profile-a-l/calligraplan.profile2
-rw-r--r--etc/profile-a-l/calligraplanwork.profile2
-rw-r--r--etc/profile-a-l/calligrasheets.profile2
-rw-r--r--etc/profile-a-l/calligrastage.profile2
-rw-r--r--etc/profile-a-l/calligrawords.profile2
-rw-r--r--etc/profile-a-l/gwenview.profile1
-rw-r--r--etc/profile-a-l/k3b.profile1
-rw-r--r--etc/profile-a-l/karbon.profile2
-rw-r--r--etc/profile-a-l/kate.profile7
-rw-r--r--etc/profile-a-l/kcalc.profile3
-rw-r--r--etc/profile-a-l/kdenlive.profile1
-rw-r--r--etc/profile-a-l/kget.profile1
-rw-r--r--etc/profile-a-l/kid3.profile1
-rw-r--r--etc/profile-a-l/kmail.profile2
-rw-r--r--etc/profile-a-l/knotes.profile1
-rw-r--r--etc/profile-a-l/konversation.profile1
-rw-r--r--etc/profile-a-l/kopete.profile1
-rw-r--r--etc/profile-a-l/ktorrent.profile3
-rw-r--r--etc/profile-a-l/kwrite.profile1
22 files changed, 42 insertions, 0 deletions
diff --git a/etc/profile-a-l/akregator.profile b/etc/profile-a-l/akregator.profile
index 377c43804..6a4d775e7 100644
--- a/etc/profile-a-l/akregator.profile
+++ b/etc/profile-a-l/akregator.profile
@@ -8,6 +8,7 @@ include globals.local
8 8
9noblacklist ${HOME}/.config/akregatorrc 9noblacklist ${HOME}/.config/akregatorrc
10noblacklist ${HOME}/.local/share/akregator 10noblacklist ${HOME}/.local/share/akregator
11noblacklist ${HOME}/.local/share/kxmlgui5/akregator
11 12
12include disable-common.inc 13include disable-common.inc
13include disable-devel.inc 14include disable-devel.inc
@@ -19,9 +20,11 @@ include disable-shell.inc
19 20
20mkfile ${HOME}/.config/akregatorrc 21mkfile ${HOME}/.config/akregatorrc
21mkdir ${HOME}/.local/share/akregator 22mkdir ${HOME}/.local/share/akregator
23mkdir ${HOME}/.local/share/kxmlgui5/akregator
22whitelist ${HOME}/.config/akregatorrc 24whitelist ${HOME}/.config/akregatorrc
23whitelist ${HOME}/.local/share/akregator 25whitelist ${HOME}/.local/share/akregator
24whitelist ${HOME}/.local/share/kssl 26whitelist ${HOME}/.local/share/kssl
27whitelist ${HOME}/.local/share/kxmlgui5/akregator
25include whitelist-common.inc 28include whitelist-common.inc
26include whitelist-var-common.inc 29include whitelist-var-common.inc
27 30
diff --git a/etc/profile-a-l/ark.profile b/etc/profile-a-l/ark.profile
index 01004d772..4b81b2717 100644
--- a/etc/profile-a-l/ark.profile
+++ b/etc/profile-a-l/ark.profile
@@ -7,6 +7,7 @@ include ark.local
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.config/arkrc 9noblacklist ${HOME}/.config/arkrc
10noblacklist ${HOME}/.local/share/kxmlgui5/ark
10 11
11include disable-common.inc 12include disable-common.inc
12include disable-devel.inc 13include disable-devel.inc
diff --git a/etc/profile-a-l/calligra.profile b/etc/profile-a-l/calligra.profile
index 489036e39..f4ce47018 100644
--- a/etc/profile-a-l/calligra.profile
+++ b/etc/profile-a-l/calligra.profile
@@ -6,6 +6,8 @@ include calligra.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.local/share/kxmlgui5/calligra
10
9include disable-common.inc 11include disable-common.inc
10include disable-devel.inc 12include disable-devel.inc
11include disable-interpreters.inc 13include disable-interpreters.inc
diff --git a/etc/profile-a-l/calligraplan.profile b/etc/profile-a-l/calligraplan.profile
index 7804a3b97..23dd61175 100644
--- a/etc/profile-a-l/calligraplan.profile
+++ b/etc/profile-a-l/calligraplan.profile
@@ -1,5 +1,7 @@
1# Firejail profile alias for calligra 1# Firejail profile alias for calligra
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3 3
4noblacklist ${HOME}/.local/share/kxmlgui5/calligraplan
5
4# Redirect 6# Redirect
5include calligra.profile 7include calligra.profile
diff --git a/etc/profile-a-l/calligraplanwork.profile b/etc/profile-a-l/calligraplanwork.profile
index 7804a3b97..1c283a3cb 100644
--- a/etc/profile-a-l/calligraplanwork.profile
+++ b/etc/profile-a-l/calligraplanwork.profile
@@ -1,5 +1,7 @@
1# Firejail profile alias for calligra 1# Firejail profile alias for calligra
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3 3
4noblacklist ${HOME}/.local/share/kxmlgui5/calligraplanwork
5
4# Redirect 6# Redirect
5include calligra.profile 7include calligra.profile
diff --git a/etc/profile-a-l/calligrasheets.profile b/etc/profile-a-l/calligrasheets.profile
index 7804a3b97..8ef75be71 100644
--- a/etc/profile-a-l/calligrasheets.profile
+++ b/etc/profile-a-l/calligrasheets.profile
@@ -1,5 +1,7 @@
1# Firejail profile alias for calligra 1# Firejail profile alias for calligra
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3 3
4noblacklist ${HOME}/.local/share/kxmlgui5/calligrasheets
5
4# Redirect 6# Redirect
5include calligra.profile 7include calligra.profile
diff --git a/etc/profile-a-l/calligrastage.profile b/etc/profile-a-l/calligrastage.profile
index 7804a3b97..d5c960248 100644
--- a/etc/profile-a-l/calligrastage.profile
+++ b/etc/profile-a-l/calligrastage.profile
@@ -1,5 +1,7 @@
1# Firejail profile alias for calligra 1# Firejail profile alias for calligra
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3 3
4noblacklist ${HOME}/.local/share/kxmlgui5/calligrastage
5
4# Redirect 6# Redirect
5include calligra.profile 7include calligra.profile
diff --git a/etc/profile-a-l/calligrawords.profile b/etc/profile-a-l/calligrawords.profile
index 7804a3b97..5985b4250 100644
--- a/etc/profile-a-l/calligrawords.profile
+++ b/etc/profile-a-l/calligrawords.profile
@@ -1,5 +1,7 @@
1# Firejail profile alias for calligra 1# Firejail profile alias for calligra
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3 3
4noblacklist ${HOME}/.local/share/kxmlgui5/calligrawords
5
4# Redirect 6# Redirect
5include calligra.profile 7include calligra.profile
diff --git a/etc/profile-a-l/gwenview.profile b/etc/profile-a-l/gwenview.profile
index ec83a2d9f..efdc56e38 100644
--- a/etc/profile-a-l/gwenview.profile
+++ b/etc/profile-a-l/gwenview.profile
@@ -15,6 +15,7 @@ noblacklist ${HOME}/.kde/share/config/gwenviewrc
15noblacklist ${HOME}/.kde4/share/apps/gwenview 15noblacklist ${HOME}/.kde4/share/apps/gwenview
16noblacklist ${HOME}/.kde4/share/config/gwenviewrc 16noblacklist ${HOME}/.kde4/share/config/gwenviewrc
17noblacklist ${HOME}/.local/share/gwenview 17noblacklist ${HOME}/.local/share/gwenview
18noblacklist ${HOME}/.local/share/kxmlgui5/gwenview
18noblacklist ${HOME}/.local/share/org.kde.gwenview 19noblacklist ${HOME}/.local/share/org.kde.gwenview
19 20
20include disable-common.inc 21include disable-common.inc
diff --git a/etc/profile-a-l/k3b.profile b/etc/profile-a-l/k3b.profile
index 0c1da7ae1..86292744c 100644
--- a/etc/profile-a-l/k3b.profile
+++ b/etc/profile-a-l/k3b.profile
@@ -9,6 +9,7 @@ include globals.local
9noblacklist ${HOME}/.config/k3brc 9noblacklist ${HOME}/.config/k3brc
10noblacklist ${HOME}/.kde/share/config/k3brc 10noblacklist ${HOME}/.kde/share/config/k3brc
11noblacklist ${HOME}/.kde4/share/config/k3brc 11noblacklist ${HOME}/.kde4/share/config/k3brc
12noblacklist ${HOME}/.local/share/kxmlgui5/k3b
12noblacklist ${MUSIC} 13noblacklist ${MUSIC}
13 14
14include disable-common.inc 15include disable-common.inc
diff --git a/etc/profile-a-l/karbon.profile b/etc/profile-a-l/karbon.profile
index 3b2e93b0a..d54d6d3d0 100644
--- a/etc/profile-a-l/karbon.profile
+++ b/etc/profile-a-l/karbon.profile
@@ -1,5 +1,7 @@
1# Firejail profile alias for krita 1# Firejail profile alias for krita
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3 3
4noblacklist ${HOME}/.local/share/kxmlgui5/karbon
5
4# Redirect 6# Redirect
5include krita.profile 7include krita.profile
diff --git a/etc/profile-a-l/kate.profile b/etc/profile-a-l/kate.profile
index 321c4558f..37605dfa9 100644
--- a/etc/profile-a-l/kate.profile
+++ b/etc/profile-a-l/kate.profile
@@ -15,6 +15,13 @@ noblacklist ${HOME}/.config/kateschemarc
15noblacklist ${HOME}/.config/katesyntaxhighlightingrc 15noblacklist ${HOME}/.config/katesyntaxhighlightingrc
16noblacklist ${HOME}/.config/katevirc 16noblacklist ${HOME}/.config/katevirc
17noblacklist ${HOME}/.local/share/kate 17noblacklist ${HOME}/.local/share/kate
18noblacklist ${HOME}/.local/share/kxmlgui5/kate
19noblacklist ${HOME}/.local/share/kxmlgui5/katefiletree
20noblacklist ${HOME}/.local/share/kxmlgui5/katekonsole
21noblacklist ${HOME}/.local/share/kxmlgui5/kateopenheaderplugin
22noblacklist ${HOME}/.local/share/kxmlgui5/katepart
23noblacklist ${HOME}/.local/share/kxmlgui5/kateproject
24noblacklist ${HOME}/.local/share/kxmlgui5/katesearch
18 25
19include disable-common.inc 26include disable-common.inc
20# include disable-devel.inc 27# include disable-devel.inc
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
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.local/share/kxmlgui5/kcalc
9 10
10include disable-common.inc 11include disable-common.inc
11include disable-devel.inc 12include disable-devel.inc
@@ -15,12 +16,14 @@ include disable-passwdmgr.inc
15include disable-programs.inc 16include disable-programs.inc
16include disable-shell.inc 17include disable-shell.inc
17 18
19mkdir ${HOME}/.local/share/kxmlgui5/kcalc
18mkfile ${HOME}/.config/kcalcrc 20mkfile ${HOME}/.config/kcalcrc
19mkfile ${HOME}/.kde/share/config/kcalcrc 21mkfile ${HOME}/.kde/share/config/kcalcrc
20mkfile ${HOME}/.kde4/share/config/kcalcrc 22mkfile ${HOME}/.kde4/share/config/kcalcrc
21whitelist ${HOME}/.config/kcalcrc 23whitelist ${HOME}/.config/kcalcrc
22whitelist ${HOME}/.kde/share/config/kcalcrc 24whitelist ${HOME}/.kde/share/config/kcalcrc
23whitelist ${HOME}/.kde4/share/config/kcalcrc 25whitelist ${HOME}/.kde4/share/config/kcalcrc
26whitelist ${HOME}/.local/share/kxmlgui5/kcalc
24include whitelist-common.inc 27include whitelist-common.inc
25include whitelist-var-common.inc 28include whitelist-var-common.inc
26 29
diff --git a/etc/profile-a-l/kdenlive.profile b/etc/profile-a-l/kdenlive.profile
index e3560cb35..9ca33b68e 100644
--- a/etc/profile-a-l/kdenlive.profile
+++ b/etc/profile-a-l/kdenlive.profile
@@ -11,6 +11,7 @@ ignore noexec ${HOME}
11noblacklist ${HOME}/.cache/kdenlive 11noblacklist ${HOME}/.cache/kdenlive
12noblacklist ${HOME}/.config/kdenliverc 12noblacklist ${HOME}/.config/kdenliverc
13noblacklist ${HOME}/.local/share/kdenlive 13noblacklist ${HOME}/.local/share/kdenlive
14noblacklist ${HOME}/.local/share/kxmlgui5/kdenlive
14 15
15include disable-common.inc 16include disable-common.inc
16include disable-devel.inc 17include disable-devel.inc
diff --git a/etc/profile-a-l/kget.profile b/etc/profile-a-l/kget.profile
index 485edc1a4..5990d0752 100644
--- a/etc/profile-a-l/kget.profile
+++ b/etc/profile-a-l/kget.profile
@@ -12,6 +12,7 @@ noblacklist ${HOME}/.kde/share/config/kgetrc
12noblacklist ${HOME}/.kde4/share/apps/kget 12noblacklist ${HOME}/.kde4/share/apps/kget
13noblacklist ${HOME}/.kde4/share/config/kgetrc 13noblacklist ${HOME}/.kde4/share/config/kgetrc
14noblacklist ${HOME}/.local/share/kget 14noblacklist ${HOME}/.local/share/kget
15noblacklist ${HOME}/.local/share/kxmlgui5/kget
15 16
16include disable-common.inc 17include disable-common.inc
17include disable-devel.inc 18include disable-devel.inc
diff --git a/etc/profile-a-l/kid3.profile b/etc/profile-a-l/kid3.profile
index cce92a93f..aa2e0ad1e 100644
--- a/etc/profile-a-l/kid3.profile
+++ b/etc/profile-a-l/kid3.profile
@@ -8,6 +8,7 @@ include globals.local
8 8
9noblacklist ${MUSIC} 9noblacklist ${MUSIC}
10noblacklist ${HOME}/.config/kid3rc 10noblacklist ${HOME}/.config/kid3rc
11noblacklist ${HOME}/.local/share/kxmlgui5/kid3
11 12
12include disable-common.inc 13include disable-common.inc
13include disable-devel.inc 14include disable-devel.inc
diff --git a/etc/profile-a-l/kmail.profile b/etc/profile-a-l/kmail.profile
index 198b05a11..ab4ff10b9 100644
--- a/etc/profile-a-l/kmail.profile
+++ b/etc/profile-a-l/kmail.profile
@@ -25,6 +25,8 @@ noblacklist ${HOME}/.local/share/apps/korganizer
25noblacklist ${HOME}/.local/share/contacts 25noblacklist ${HOME}/.local/share/contacts
26noblacklist ${HOME}/.local/share/emailidentities 26noblacklist ${HOME}/.local/share/emailidentities
27noblacklist ${HOME}/.local/share/kmail2 27noblacklist ${HOME}/.local/share/kmail2
28noblacklist ${HOME}/.local/share/kxmlgui5/kmail
29noblacklist ${HOME}/.local/share/kxmlgui5/kmail2
28noblacklist ${HOME}/.local/share/local-mail 30noblacklist ${HOME}/.local/share/local-mail
29noblacklist ${HOME}/.local/share/notes 31noblacklist ${HOME}/.local/share/notes
30noblacklist /tmp/akonadi-* 32noblacklist /tmp/akonadi-*
diff --git a/etc/profile-a-l/knotes.profile b/etc/profile-a-l/knotes.profile
index ababfcdb1..f155d0ad6 100644
--- a/etc/profile-a-l/knotes.profile
+++ b/etc/profile-a-l/knotes.profile
@@ -12,6 +12,7 @@ include knotes.local
12 12
13noblacklist ${HOME}/.config/knotesrc 13noblacklist ${HOME}/.config/knotesrc
14noblacklist ${HOME}/.local/share/knotes 14noblacklist ${HOME}/.local/share/knotes
15noblacklist ${HOME}/.local/share/kxmlgui5/knotes
15 16
16# Redirect 17# Redirect
17include kmail.profile 18include kmail.profile
diff --git a/etc/profile-a-l/konversation.profile b/etc/profile-a-l/konversation.profile
index 4e17f590c..4dd929c6b 100644
--- a/etc/profile-a-l/konversation.profile
+++ b/etc/profile-a-l/konversation.profile
@@ -10,6 +10,7 @@ noblacklist ${HOME}/.config/konversationrc
10noblacklist ${HOME}/.config/konversation.notifyrc 10noblacklist ${HOME}/.config/konversation.notifyrc
11noblacklist ${HOME}/.kde/share/config/konversationrc 11noblacklist ${HOME}/.kde/share/config/konversationrc
12noblacklist ${HOME}/.kde4/share/config/konversationrc 12noblacklist ${HOME}/.kde4/share/config/konversationrc
13noblacklist ${HOME}/.local/share/kxmlgui5/konversation
13 14
14include disable-common.inc 15include disable-common.inc
15include disable-devel.inc 16include disable-devel.inc
diff --git a/etc/profile-a-l/kopete.profile b/etc/profile-a-l/kopete.profile
index e0bdce059..a5269373d 100644
--- a/etc/profile-a-l/kopete.profile
+++ b/etc/profile-a-l/kopete.profile
@@ -10,6 +10,7 @@ noblacklist ${HOME}/.kde/share/apps/kopete
10noblacklist ${HOME}/.kde/share/config/kopeterc 10noblacklist ${HOME}/.kde/share/config/kopeterc
11noblacklist ${HOME}/.kde4/share/apps/kopete 11noblacklist ${HOME}/.kde4/share/apps/kopete
12noblacklist ${HOME}/.kde4/share/config/kopeterc 12noblacklist ${HOME}/.kde4/share/config/kopeterc
13noblacklist ${HOME}/.local/share/kxmlgui5/kopete
13 14
14include disable-common.inc 15include disable-common.inc
15include disable-devel.inc 16include disable-devel.inc
diff --git a/etc/profile-a-l/ktorrent.profile b/etc/profile-a-l/ktorrent.profile
index 1919d73bc..b55e00f22 100644
--- a/etc/profile-a-l/ktorrent.profile
+++ b/etc/profile-a-l/ktorrent.profile
@@ -12,6 +12,7 @@ noblacklist ${HOME}/.kde/share/config/ktorrentrc
12noblacklist ${HOME}/.kde4/share/apps/ktorrent 12noblacklist ${HOME}/.kde4/share/apps/ktorrent
13noblacklist ${HOME}/.kde4/share/config/ktorrentrc 13noblacklist ${HOME}/.kde4/share/config/ktorrentrc
14noblacklist ${HOME}/.local/share/ktorrent 14noblacklist ${HOME}/.local/share/ktorrent
15noblacklist ${HOME}/.local/share/kxmlgui5/ktorrent
15 16
16include disable-common.inc 17include disable-common.inc
17include disable-devel.inc 18include disable-devel.inc
@@ -24,6 +25,7 @@ include disable-shell.inc
24mkdir ${HOME}/.kde/share/apps/ktorrent 25mkdir ${HOME}/.kde/share/apps/ktorrent
25mkdir ${HOME}/.kde4/share/apps/ktorrent 26mkdir ${HOME}/.kde4/share/apps/ktorrent
26mkdir ${HOME}/.local/share/ktorrent 27mkdir ${HOME}/.local/share/ktorrent
28mkdir ${HOME}/.local/share/kxmlgui5/ktorrent
27mkfile ${HOME}/.config/ktorrentrc 29mkfile ${HOME}/.config/ktorrentrc
28mkfile ${HOME}/.kde/share/config/ktorrentrc 30mkfile ${HOME}/.kde/share/config/ktorrentrc
29mkfile ${HOME}/.kde4/share/config/ktorrentrc 31mkfile ${HOME}/.kde4/share/config/ktorrentrc
@@ -34,6 +36,7 @@ whitelist ${HOME}/.kde/share/config/ktorrentrc
34whitelist ${HOME}/.kde4/share/apps/ktorrent 36whitelist ${HOME}/.kde4/share/apps/ktorrent
35whitelist ${HOME}/.kde4/share/config/ktorrentrc 37whitelist ${HOME}/.kde4/share/config/ktorrentrc
36whitelist ${HOME}/.local/share/ktorrent 38whitelist ${HOME}/.local/share/ktorrent
39whitelist ${HOME}/.local/share/kxmlgui5/ktorrent
37include whitelist-common.inc 40include whitelist-common.inc
38include whitelist-var-common.inc 41include whitelist-var-common.inc
39 42
diff --git a/etc/profile-a-l/kwrite.profile b/etc/profile-a-l/kwrite.profile
index 7d39e89ad..4ff8efa70 100644
--- a/etc/profile-a-l/kwrite.profile
+++ b/etc/profile-a-l/kwrite.profile
@@ -13,6 +13,7 @@ noblacklist ${HOME}/.config/katesyntaxhighlightingrc
13noblacklist ${HOME}/.config/katevirc 13noblacklist ${HOME}/.config/katevirc
14noblacklist ${HOME}/.config/kwriterc 14noblacklist ${HOME}/.config/kwriterc
15noblacklist ${HOME}/.local/share/kwrite 15noblacklist ${HOME}/.local/share/kwrite
16noblacklist ${HOME}/.local/share/kxmlgui5/kwrite
16noblacklist ${DOCUMENTS} 17noblacklist ${DOCUMENTS}
17 18
18include disable-common.inc 19include disable-common.inc