aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2024-05-20 05:06:41 +0000
committerLibravatar GitHub <noreply@github.com>2024-05-20 05:06:41 +0000
commitea104190df032d58ef564313fb97d5298104ec15 (patch)
tree3e27178b9d85e7123a2eae2aaf01464bc3f50e7d
parentprofiles: yelp: add Firefox URL open support (#6349) (diff)
downloadfirejail-ea104190df032d58ef564313fb97d5298104ec15.tar.gz
firejail-ea104190df032d58ef564313fb97d5298104ec15.tar.zst
firejail-ea104190df032d58ef564313fb97d5298104ec15.zip
profiles: streamline Firefox URL opening support (#6348)
Changes: * Improve Firefox D-Bus comment * Add missing/standardize related comments * Include allow-bin-sh.inc in relevant profiles * Use Firefox URL open section in relevant profiles
-rw-r--r--etc/profile-a-l/electron-mail.profile2
-rw-r--r--etc/profile-a-l/email-common.profile9
-rw-r--r--etc/profile-a-l/fluffychat.profile2
-rw-r--r--etc/profile-a-l/geary.profile10
-rw-r--r--etc/profile-a-l/gtk-youtube-viewers-common.profile2
-rw-r--r--etc/profile-a-l/kube.profile5
-rw-r--r--etc/profile-a-l/lettura.profile5
-rw-r--r--etc/profile-a-l/linuxqq.profile10
-rw-r--r--etc/profile-m-z/signal-desktop.profile5
-rw-r--r--etc/profile-m-z/thunderbird.profile2
-rw-r--r--etc/profile-m-z/trojita.profile5
-rw-r--r--etc/profile-m-z/tutanota-desktop.profile2
-rw-r--r--etc/profile-m-z/zeal.profile11
13 files changed, 52 insertions, 18 deletions
diff --git a/etc/profile-a-l/electron-mail.profile b/etc/profile-a-l/electron-mail.profile
index 544756877..603ea4e2f 100644
--- a/etc/profile-a-l/electron-mail.profile
+++ b/etc/profile-a-l/electron-mail.profile
@@ -35,7 +35,7 @@ dbus-user filter
35dbus-user.talk org.freedesktop.Notifications 35dbus-user.talk org.freedesktop.Notifications
36dbus-user.talk org.freedesktop.secrets 36dbus-user.talk org.freedesktop.secrets
37dbus-user.talk org.gnome.keyring.SystemPrompter 37dbus-user.talk org.gnome.keyring.SystemPrompter
38# allow D-Bus communication with firefox for opening links 38# Allow D-Bus communication with Firefox for opening links
39dbus-user.talk org.mozilla.* 39dbus-user.talk org.mozilla.*
40 40
41# Redirect 41# Redirect
diff --git a/etc/profile-a-l/email-common.profile b/etc/profile-a-l/email-common.profile
index cffa85fd5..2929d6a75 100644
--- a/etc/profile-a-l/email-common.profile
+++ b/etc/profile-a-l/email-common.profile
@@ -10,7 +10,6 @@ include email-common.local
10noblacklist ${HOME}/.bogofilter 10noblacklist ${HOME}/.bogofilter
11noblacklist ${HOME}/.bsfilter 11noblacklist ${HOME}/.bsfilter
12noblacklist ${HOME}/.gnupg 12noblacklist ${HOME}/.gnupg
13noblacklist ${HOME}/.mozilla
14noblacklist ${HOME}/.signature 13noblacklist ${HOME}/.signature
15# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your email-common.local 14# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your email-common.local
16# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications 15# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications
@@ -31,6 +30,12 @@ include disable-interpreters.inc
31include disable-programs.inc 30include disable-programs.inc
32include disable-xdg.inc 31include disable-xdg.inc
33 32
33# The lines below are needed to find the default Firefox profile name, to allow
34# opening links in an existing instance of Firefox (note that it still fails if
35# there isn't a Firefox instance running with the default profile; see #5352)
36noblacklist ${HOME}/.mozilla
37whitelist ${HOME}/.mozilla/firefox/profiles.ini
38
34mkdir ${HOME}/.gnupg 39mkdir ${HOME}/.gnupg
35mkfile ${HOME}/.config/mimeapps.list 40mkfile ${HOME}/.config/mimeapps.list
36mkfile ${HOME}/.signature 41mkfile ${HOME}/.signature
@@ -38,7 +43,6 @@ whitelist ${HOME}/.bogofilter
38whitelist ${HOME}/.bsfilter 43whitelist ${HOME}/.bsfilter
39whitelist ${HOME}/.config/mimeapps.list 44whitelist ${HOME}/.config/mimeapps.list
40whitelist ${HOME}/.gnupg 45whitelist ${HOME}/.gnupg
41whitelist ${HOME}/.mozilla/firefox/profiles.ini
42whitelist ${HOME}/.signature 46whitelist ${HOME}/.signature
43whitelist ${DOCUMENTS} 47whitelist ${DOCUMENTS}
44whitelist ${DOWNLOADS} 48whitelist ${DOWNLOADS}
@@ -90,6 +94,7 @@ dbus-user.talk org.freedesktop.Notifications
90dbus-user.talk org.freedesktop.secrets 94dbus-user.talk org.freedesktop.secrets
91dbus-user.talk org.gnome.keyring.* 95dbus-user.talk org.gnome.keyring.*
92dbus-user.talk org.gnome.seahorse.* 96dbus-user.talk org.gnome.seahorse.*
97# Allow D-Bus communication with Firefox for opening links
93dbus-user.talk org.mozilla.* 98dbus-user.talk org.mozilla.*
94dbus-system none 99dbus-system none
95 100
diff --git a/etc/profile-a-l/fluffychat.profile b/etc/profile-a-l/fluffychat.profile
index 63fe28f2f..e1b13edad 100644
--- a/etc/profile-a-l/fluffychat.profile
+++ b/etc/profile-a-l/fluffychat.profile
@@ -64,7 +64,7 @@ private-tmp
64 64
65dbus-user filter 65dbus-user filter
66dbus-user.talk org.freedesktop.secrets 66dbus-user.talk org.freedesktop.secrets
67# allow D-Bus communication with firefox for opening links 67# Allow D-Bus communication with Firefox for opening links
68dbus-user.talk org.mozilla.* 68dbus-user.talk org.mozilla.*
69dbus-system filter 69dbus-system filter
70dbus-system.talk org.freedesktop.NetworkManager 70dbus-system.talk org.freedesktop.NetworkManager
diff --git a/etc/profile-a-l/geary.profile b/etc/profile-a-l/geary.profile
index da240c36a..1303922c8 100644
--- a/etc/profile-a-l/geary.profile
+++ b/etc/profile-a-l/geary.profile
@@ -14,9 +14,9 @@ noblacklist ${HOME}/.config/geary
14noblacklist ${HOME}/.local/share/evolution 14noblacklist ${HOME}/.local/share/evolution
15noblacklist ${HOME}/.local/share/geary 15noblacklist ${HOME}/.local/share/geary
16noblacklist ${HOME}/.local/share/pki 16noblacklist ${HOME}/.local/share/pki
17noblacklist ${HOME}/.mozilla
18noblacklist ${HOME}/.pki 17noblacklist ${HOME}/.pki
19 18
19# sh is needed to allow Firefox to open links
20include allow-bin-sh.inc 20include allow-bin-sh.inc
21 21
22include disable-common.inc 22include disable-common.inc
@@ -27,6 +27,12 @@ include disable-programs.inc
27include disable-shell.inc 27include disable-shell.inc
28include disable-xdg.inc 28include disable-xdg.inc
29 29
30# The lines below are needed to find the default Firefox profile name, to allow
31# opening links in an existing instance of Firefox (note that it still fails if
32# there isn't a Firefox instance running with the default profile; see #5352)
33noblacklist ${HOME}/.mozilla
34whitelist ${HOME}/.mozilla/firefox/profiles.ini
35
30mkdir ${HOME}/.cache/evolution 36mkdir ${HOME}/.cache/evolution
31mkdir ${HOME}/.cache/folks 37mkdir ${HOME}/.cache/folks
32mkdir ${HOME}/.cache/geary 38mkdir ${HOME}/.cache/geary
@@ -43,7 +49,6 @@ whitelist ${HOME}/.config/geary
43whitelist ${HOME}/.local/share/evolution 49whitelist ${HOME}/.local/share/evolution
44whitelist ${HOME}/.local/share/geary 50whitelist ${HOME}/.local/share/geary
45whitelist ${HOME}/.local/share/pki 51whitelist ${HOME}/.local/share/pki
46whitelist ${HOME}/.mozilla/firefox/profiles.ini
47whitelist ${HOME}/.pki 52whitelist ${HOME}/.pki
48whitelist /usr/share/geary 53whitelist /usr/share/geary
49include whitelist-common.inc 54include whitelist-common.inc
@@ -88,6 +93,7 @@ dbus-user.talk org.gnome.OnlineAccounts
88dbus-user.talk org.gnome.evolution.dataserver.AddressBook10 93dbus-user.talk org.gnome.evolution.dataserver.AddressBook10
89dbus-user.talk org.gnome.evolution.dataserver.Sources5 94dbus-user.talk org.gnome.evolution.dataserver.Sources5
90?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher 95?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
96# Allow D-Bus communication with Firefox for opening links
91dbus-user.talk org.mozilla.* 97dbus-user.talk org.mozilla.*
92dbus-system none 98dbus-system none
93 99
diff --git a/etc/profile-a-l/gtk-youtube-viewers-common.profile b/etc/profile-a-l/gtk-youtube-viewers-common.profile
index 049448a23..b27a4fa35 100644
--- a/etc/profile-a-l/gtk-youtube-viewers-common.profile
+++ b/etc/profile-a-l/gtk-youtube-viewers-common.profile
@@ -18,5 +18,5 @@ whitelist ${HOME}/.mozilla/firefox/profiles.ini
18private-bin firefox,xterm 18private-bin firefox,xterm
19 19
20dbus-user filter 20dbus-user filter
21# allow D-Bus communication with firefox for opening links 21# Allow D-Bus communication with Firefox for opening links
22dbus-user.talk org.mozilla.* 22dbus-user.talk org.mozilla.*
diff --git a/etc/profile-a-l/kube.profile b/etc/profile-a-l/kube.profile
index 1f8757edb..79b286e58 100644
--- a/etc/profile-a-l/kube.profile
+++ b/etc/profile-a-l/kube.profile
@@ -13,6 +13,9 @@ noblacklist ${HOME}/.gnupg
13noblacklist ${HOME}/.local/share/kube 13noblacklist ${HOME}/.local/share/kube
14noblacklist ${HOME}/.local/share/sink 14noblacklist ${HOME}/.local/share/sink
15 15
16# sh is needed to allow Firefox to open links
17include allow-bin-sh.inc
18
16include disable-common.inc 19include disable-common.inc
17include disable-devel.inc 20include disable-devel.inc
18include disable-exec.inc 21include disable-exec.inc
@@ -78,7 +81,7 @@ dbus-user filter
78dbus-user.talk ca.desrt.dconf 81dbus-user.talk ca.desrt.dconf
79dbus-user.talk org.freedesktop.secrets 82dbus-user.talk org.freedesktop.secrets
80dbus-user.talk org.freedesktop.Notifications 83dbus-user.talk org.freedesktop.Notifications
81# allow D-Bus communication with firefox for opening links 84# Allow D-Bus communication with Firefox for opening links
82dbus-user.talk org.mozilla.* 85dbus-user.talk org.mozilla.*
83dbus-system none 86dbus-system none
84 87
diff --git a/etc/profile-a-l/lettura.profile b/etc/profile-a-l/lettura.profile
index 94a455355..32f0909fb 100644
--- a/etc/profile-a-l/lettura.profile
+++ b/etc/profile-a-l/lettura.profile
@@ -11,6 +11,9 @@ noblacklist ${HOME}/.config/com.lettura.dev
11noblacklist ${HOME}/.lettura 11noblacklist ${HOME}/.lettura
12noblacklist ${HOME}/.local/share/com.lettura.dev 12noblacklist ${HOME}/.local/share/com.lettura.dev
13 13
14# sh is needed to allow Firefox to open links
15include allow-bin-sh.inc
16
14include disable-common.inc 17include disable-common.inc
15include disable-devel.inc 18include disable-devel.inc
16include disable-exec.inc 19include disable-exec.inc
@@ -69,7 +72,7 @@ private-tmp
69dbus-user filter 72dbus-user filter
70dbus-user.talk org.freedesktop.Notifications 73dbus-user.talk org.freedesktop.Notifications
71?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher 74?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
72# allow D-Bus communication with firefox for opening links 75# Allow D-Bus communication with Firefox for opening links
73dbus-user.talk org.mozilla.* 76dbus-user.talk org.mozilla.*
74dbus-system none 77dbus-system none
75 78
diff --git a/etc/profile-a-l/linuxqq.profile b/etc/profile-a-l/linuxqq.profile
index e900c0914..278797fb3 100644
--- a/etc/profile-a-l/linuxqq.profile
+++ b/etc/profile-a-l/linuxqq.profile
@@ -7,15 +7,20 @@ include linuxqq.local
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.config/QQ 9noblacklist ${HOME}/.config/QQ
10noblacklist ${HOME}/.mozilla
11 10
11# sh is needed to allow Firefox to open links
12include allow-bin-sh.inc 12include allow-bin-sh.inc
13 13
14include disable-shell.inc 14include disable-shell.inc
15 15
16# The lines below are needed to find the default Firefox profile name, to allow
17# opening links in an existing instance of Firefox (note that it still fails if
18# there isn't a Firefox instance running with the default profile; see #5352)
19noblacklist ${HOME}/.mozilla
20whitelist ${HOME}/.mozilla/firefox/profiles.ini
21
16mkdir ${HOME}/.config/QQ 22mkdir ${HOME}/.config/QQ
17whitelist ${HOME}/.config/QQ 23whitelist ${HOME}/.config/QQ
18whitelist ${HOME}/.mozilla/firefox/profiles.ini
19whitelist ${DESKTOP} 24whitelist ${DESKTOP}
20whitelist /opt/QQ 25whitelist /opt/QQ
21 26
@@ -34,6 +39,7 @@ dbus-user.talk org.freedesktop.portal.IBus
34dbus-user.talk org.freedesktop.ScreenSaver 39dbus-user.talk org.freedesktop.ScreenSaver
35dbus-user.talk org.gnome.Mutter.IdleMonitor 40dbus-user.talk org.gnome.Mutter.IdleMonitor
36?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher 41?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
42# Allow D-Bus communication with Firefox for opening links
37dbus-user.talk org.mozilla.* 43dbus-user.talk org.mozilla.*
38ignore dbus-user none 44ignore dbus-user none
39 45
diff --git a/etc/profile-m-z/signal-desktop.profile b/etc/profile-m-z/signal-desktop.profile
index 8cb4e4173..d1db0ba86 100644
--- a/etc/profile-m-z/signal-desktop.profile
+++ b/etc/profile-m-z/signal-desktop.profile
@@ -5,6 +5,9 @@ include signal-desktop.local
5# Persistent global definitions 5# Persistent global definitions
6include globals.local 6include globals.local
7 7
8# sh is needed to allow Firefox to open links
9include allow-bin-sh.inc
10
8ignore novideo 11ignore novideo
9 12
10ignore noexec /tmp 13ignore noexec /tmp
@@ -25,7 +28,7 @@ private-etc @tls-ca
25dbus-user filter 28dbus-user filter
26# allow D-Bus notifications 29# allow D-Bus notifications
27dbus-user.talk org.freedesktop.Notifications 30dbus-user.talk org.freedesktop.Notifications
28# allow D-Bus communication with firefox for opening links 31# Allow D-Bus communication with Firefox for opening links
29dbus-user.talk org.mozilla.* 32dbus-user.talk org.mozilla.*
30 33
31ignore dbus-user none 34ignore dbus-user none
diff --git a/etc/profile-m-z/thunderbird.profile b/etc/profile-m-z/thunderbird.profile
index 979971ac2..fda32d038 100644
--- a/etc/profile-m-z/thunderbird.profile
+++ b/etc/profile-m-z/thunderbird.profile
@@ -15,7 +15,7 @@ dbus-user filter
15dbus-user.own org.mozilla.thunderbird.* 15dbus-user.own org.mozilla.thunderbird.*
16dbus-user.talk ca.desrt.dconf 16dbus-user.talk ca.desrt.dconf
17dbus-user.talk org.freedesktop.Notifications 17dbus-user.talk org.freedesktop.Notifications
18# allow D-Bus communication with firefox for opening links 18# Allow D-Bus communication with Firefox for opening links
19dbus-user.talk org.mozilla.* 19dbus-user.talk org.mozilla.*
20# e2ee email needs writable-run-user 20# e2ee email needs writable-run-user
21# https://support.mozilla.org/en-US/kb/introduction-to-e2e-encryption 21# https://support.mozilla.org/en-US/kb/introduction-to-e2e-encryption
diff --git a/etc/profile-m-z/trojita.profile b/etc/profile-m-z/trojita.profile
index 5e9e7f127..dc0f5b906 100644
--- a/etc/profile-m-z/trojita.profile
+++ b/etc/profile-m-z/trojita.profile
@@ -10,6 +10,9 @@ noblacklist ${HOME}/.abook
10noblacklist ${HOME}/.cache/flaska.net/trojita 10noblacklist ${HOME}/.cache/flaska.net/trojita
11noblacklist ${HOME}/.config/flaska.net 11noblacklist ${HOME}/.config/flaska.net
12 12
13# sh is needed to allow Firefox to open links
14include allow-bin-sh.inc
15
13include disable-common.inc 16include disable-common.inc
14include disable-devel.inc 17include disable-devel.inc
15include disable-exec.inc 18include disable-exec.inc
@@ -61,7 +64,7 @@ private-tmp
61 64
62dbus-user filter 65dbus-user filter
63dbus-user.talk org.freedesktop.secrets 66dbus-user.talk org.freedesktop.secrets
64# allow D-Bus communication with firefox for opening links 67# Allow D-Bus communication with Firefox for opening links
65dbus-user.talk org.mozilla.* 68dbus-user.talk org.mozilla.*
66dbus-system none 69dbus-system none
67 70
diff --git a/etc/profile-m-z/tutanota-desktop.profile b/etc/profile-m-z/tutanota-desktop.profile
index f0a0cacaf..6c6de108b 100644
--- a/etc/profile-m-z/tutanota-desktop.profile
+++ b/etc/profile-m-z/tutanota-desktop.profile
@@ -40,7 +40,7 @@ dbus-user filter
40dbus-user.talk org.freedesktop.Notifications 40dbus-user.talk org.freedesktop.Notifications
41dbus-user.talk org.freedesktop.secrets 41dbus-user.talk org.freedesktop.secrets
42dbus-user.talk org.gnome.keyring.SystemPrompter 42dbus-user.talk org.gnome.keyring.SystemPrompter
43# allow D-Bus communication with firefox for opening links 43# Allow D-Bus communication with Firefox for opening links
44dbus-user.talk org.mozilla.* 44dbus-user.talk org.mozilla.*
45 45
46# Redirect 46# Redirect
diff --git a/etc/profile-m-z/zeal.profile b/etc/profile-m-z/zeal.profile
index d576dbefd..f862bfce0 100644
--- a/etc/profile-m-z/zeal.profile
+++ b/etc/profile-m-z/zeal.profile
@@ -10,6 +10,9 @@ noblacklist ${HOME}/.cache/Zeal
10noblacklist ${HOME}/.config/Zeal 10noblacklist ${HOME}/.config/Zeal
11noblacklist ${HOME}/.local/share/Zeal 11noblacklist ${HOME}/.local/share/Zeal
12 12
13# sh is needed to allow Firefox to open links
14include allow-bin-sh.inc
15
13include disable-common.inc 16include disable-common.inc
14include disable-devel.inc 17include disable-devel.inc
15include disable-exec.inc 18include disable-exec.inc
@@ -19,8 +22,9 @@ include disable-programs.inc
19include disable-shell.inc 22include disable-shell.inc
20include disable-xdg.inc 23include disable-xdg.inc
21 24
22# Allow zeal to open links in Firefox browsers. 25# The lines below are needed to find the default Firefox profile name, to allow
23# This also requires dbus-user filtering (see below). 26# opening links in an existing instance of Firefox (note that it still fails if
27# there isn't a Firefox instance running with the default profile; see #5352)
24noblacklist ${HOME}/.mozilla 28noblacklist ${HOME}/.mozilla
25whitelist ${HOME}/.mozilla/firefox/profiles.ini 29whitelist ${HOME}/.mozilla/firefox/profiles.ini
26 30
@@ -63,8 +67,9 @@ private-etc @tls-ca,@x11,host.conf,mime.types,rpc,services
63private-tmp 67private-tmp
64 68
65dbus-user filter 69dbus-user filter
66dbus-user.talk org.mozilla.*
67?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher 70?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
71# Allow D-Bus communication with Firefox for opening links
72dbus-user.talk org.mozilla.*
68dbus-system none 73dbus-system none
69 74
70#memory-deny-write-execute # breaks on Arch 75#memory-deny-write-execute # breaks on Arch