aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-a-l
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-01-15 09:24:30 -0500
committerLibravatar GitHub <noreply@github.com>2023-01-15 09:24:30 -0500
commitc93ac418630fbf73d670fd502f5e14ba9fd49d44 (patch)
treeaec16d3bbf9d4bbdf339e3d0bc44091796f6fc47 /etc/profile-a-l
parentMerge pull request #5563 from glitsj16/linuxqq (diff)
parentbalsa: drop private-bin (diff)
downloadfirejail-c93ac418630fbf73d670fd502f5e14ba9fd49d44.tar.gz
firejail-c93ac418630fbf73d670fd502f5e14ba9fd49d44.tar.zst
firejail-c93ac418630fbf73d670fd502f5e14ba9fd49d44.zip
Merge pull request #5571 from glitsj16/ec-refactor
email-common refactoring
Diffstat (limited to 'etc/profile-a-l')
-rw-r--r--etc/profile-a-l/balsa.profile64
-rw-r--r--etc/profile-a-l/claws-mail.profile12
-rw-r--r--etc/profile-a-l/email-common.profile21
3 files changed, 17 insertions, 80 deletions
diff --git a/etc/profile-a-l/balsa.profile b/etc/profile-a-l/balsa.profile
index 661356ff6..fb66016a9 100644
--- a/etc/profile-a-l/balsa.profile
+++ b/etc/profile-a-l/balsa.profile
@@ -7,76 +7,20 @@ include balsa.local
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.balsa 9noblacklist ${HOME}/.balsa
10noblacklist ${HOME}/.gnupg
11noblacklist ${HOME}/.mozilla
12noblacklist ${HOME}/.signature
13noblacklist ${HOME}/mail 10noblacklist ${HOME}/mail
14noblacklist /var/mail
15noblacklist /var/spool/mail
16 11
17include disable-common.inc
18include disable-devel.inc
19include disable-exec.inc
20include disable-interpreters.inc
21include disable-programs.inc
22include disable-shell.inc 12include disable-shell.inc
23include disable-xdg.inc
24 13
25mkdir ${HOME}/.balsa 14mkdir ${HOME}/.balsa
26mkdir ${HOME}/.gnupg
27mkfile ${HOME}/.signature
28mkdir ${HOME}/mail 15mkdir ${HOME}/mail
29whitelist ${HOME}/.balsa 16whitelist ${HOME}/.balsa
30whitelist ${HOME}/.gnupg
31whitelist ${HOME}/.mozilla/firefox/profiles.ini
32whitelist ${HOME}/.signature
33whitelist ${HOME}/mail 17whitelist ${HOME}/mail
34whitelist ${RUNUSER}/gnupg
35whitelist /usr/share/balsa 18whitelist /usr/share/balsa
36whitelist /usr/share/gnupg
37whitelist /usr/share/gnupg2
38whitelist /var/mail
39whitelist /var/spool/mail
40include whitelist-common.inc
41include whitelist-runuser-common.inc
42include whitelist-usr-share-common.inc
43include whitelist-var-common.inc
44 19
45apparmor 20# Add "pinentry-curses,pinentry-emacs,pinentry-fltk,pinentry-gnome3,pinentry-gtk,pinentry-gtk2,pinentry-gtk-2,pinentry-qt,pinentry-qt4,pinentry-tty,pinentry-x2go,pinentry-kwallet" for gpg.
46caps.drop all 21#private-bin balsa,balsa-ab,gpg,gpg-agent,gpg2,gpgsm
47netfilter
48no3d
49nodvd
50nogroups
51noinput
52nonewprivs
53noroot
54nosound
55notv
56nou2f
57novideo
58protocol unix,inet,inet6
59seccomp
60tracelog
61 22
62# disable-mnt
63# Add "pinentry-curses,pinentry-emacs,pinentry-fltk,pinentry-gnome3,pinentry-gtk,pinentry-gtk2,pinentry-gtk-2,pinentry-qt,pinentry-qt4,pinentry-tty,pinentry-x2go,pinentry-kwallet" for gpg
64# Add "ignore private-bin" for hyperlinks or have a look at the private-bins in firefox.profile and firefox-common.profile.
65private-bin balsa,balsa-ab,gpg,gpg-agent,gpg2,gpgsm
66private-cache
67private-dev
68private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gcrypt,groups,gtk-2.0,gtk-3.0,hostname,hosts,ld.so.cache,ld.so.preload,mailname,passwd,pki,resolv.conf,selinux,ssl,xdg
69private-tmp
70writable-run-user
71writable-var
72
73dbus-user filter
74dbus-user.own org.desktop.Balsa 23dbus-user.own org.desktop.Balsa
75dbus-user.talk ca.desrt.dconf
76dbus-user.talk org.freedesktop.Notifications
77dbus-user.talk org.freedesktop.secrets
78dbus-user.talk org.gnome.keyring.SystemPrompter
79dbus-system none
80 24
81read-only ${HOME}/.mozilla/firefox/profiles.ini 25# Redirect
82restrict-namespaces 26include email-common.profile
diff --git a/etc/profile-a-l/claws-mail.profile b/etc/profile-a-l/claws-mail.profile
index ce7b30122..e0f1bca94 100644
--- a/etc/profile-a-l/claws-mail.profile
+++ b/etc/profile-a-l/claws-mail.profile
@@ -20,17 +20,5 @@ whitelist /usr/share/doc/claws-mail
20 20
21# private-bin claws-mail,curl,gpg,gpg2,gpg-agent,gpgsm,gpgme-config,pinentry,pinentry-gtk-2 21# private-bin claws-mail,curl,gpg,gpg2,gpg-agent,gpgsm,gpgme-config,pinentry,pinentry-gtk-2
22 22
23dbus-user filter
24dbus-user.talk ca.desrt.dconf
25# Add the next line to your claws-mail.local if you use the notification plugin.
26# dbus-user.talk org.freedesktop.Notifications
27dbus-user.talk org.freedesktop.secrets
28dbus-user.talk org.gnome.keyring
29dbus-user.talk org.gnome.keyring.PrivatePrompter
30dbus-user.talk org.gnome.keyring.SystemPrompter
31dbus-user.talk org.gnome.seahorse
32dbus-user.talk org.gnome.seahorse.Application
33dbus-user.talk org.mozilla.*
34
35# Redirect 23# Redirect
36include email-common.profile 24include email-common.profile
diff --git a/etc/profile-a-l/email-common.profile b/etc/profile-a-l/email-common.profile
index 86fb27514..0bdfe995e 100644
--- a/etc/profile-a-l/email-common.profile
+++ b/etc/profile-a-l/email-common.profile
@@ -1,5 +1,5 @@
1# Firejail profile for email-common 1# Firejail profile for email-common
2# Description: Common profile for claws-mail and sylpheed email clients 2# Description: Common profile for GUI mail clients
3# This file is overwritten after every install/update 3# This file is overwritten after every install/update
4# Persistent local customizations 4# Persistent local customizations
5include email-common.local 5include email-common.local
@@ -14,6 +14,8 @@ noblacklist ${HOME}/.signature
14# 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
15# 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
16noblacklist ${HOME}/Mail 16noblacklist ${HOME}/Mail
17noblacklist /var/mail
18noblacklist /var/spool/mail
17 19
18noblacklist ${DOCUMENTS} 20noblacklist ${DOCUMENTS}
19 21
@@ -38,6 +40,8 @@ whitelist ${HOME}/Mail
38whitelist ${RUNUSER}/gnupg 40whitelist ${RUNUSER}/gnupg
39whitelist /usr/share/gnupg 41whitelist /usr/share/gnupg
40whitelist /usr/share/gnupg2 42whitelist /usr/share/gnupg2
43whitelist /var/mail
44whitelist /var/spool/mail
41include whitelist-common.inc 45include whitelist-common.inc
42include whitelist-runuser-common.inc 46include whitelist-runuser-common.inc
43include whitelist-usr-share-common.inc 47include whitelist-usr-share-common.inc
@@ -69,16 +73,17 @@ private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gcrypt,gnup
69private-tmp 73private-tmp
70# encrypting and signing email 74# encrypting and signing email
71writable-run-user 75writable-run-user
76writable-var
72 77
78dbus-user filter
79dbus-user.talk ca.desrt.dconf
80dbus-user.talk org.freedesktop.Notifications
81dbus-user.talk org.freedesktop.secrets
82dbus-user.talk org.gnome.keyring.*
83dbus-user.talk org.gnome.seahorse.*
84dbus-user.talk org.mozilla.*
73dbus-system none 85dbus-system none
74 86
75# If you want to read local mail stored in /var/mail, add the following to email-common.local:
76#noblacklist /var/mail
77#noblacklist /var/spool/mail
78#whitelist /var/mail
79#whitelist /var/spool/mail
80#writable-var
81
82read-only ${HOME}/.mozilla/firefox/profiles.ini 87read-only ${HOME}/.mozilla/firefox/profiles.ini
83read-only ${HOME}/.signature 88read-only ${HOME}/.signature
84restrict-namespaces 89restrict-namespaces