aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--etc/inc/disable-programs.inc1
-rw-r--r--etc/profile-m-z/ssmtp.profile75
3 files changed, 77 insertions, 1 deletions
diff --git a/README.md b/README.md
index a8b2f5c02..39ce41e22 100644
--- a/README.md
+++ b/README.md
@@ -336,7 +336,7 @@ Stats:
336### New profiles: 336### New profiles:
337 337
338onionshare, onionshare-cli, opera-developer, songrec, gdu, makedeb, lbry-viewer, tuir, 338onionshare, onionshare-cli, opera-developer, songrec, gdu, makedeb, lbry-viewer, tuir,
339cinelerra-gg, tesseract, avidemux3_cli, avidemux3_jobs_qt5, avidemux3_qt5, 339cinelerra-gg, tesseract, avidemux3_cli, avidemux3_jobs_qt5, avidemux3_qt5, ssmtp
340 340
341 341
342 342
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index 858a0c9f6..b52bcaa11 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -1181,6 +1181,7 @@ blacklist ${HOME}/yt-dlp.conf.txt
1181blacklist ${RUNUSER}/*firefox* 1181blacklist ${RUNUSER}/*firefox*
1182blacklist ${RUNUSER}/akonadi 1182blacklist ${RUNUSER}/akonadi
1183blacklist ${RUNUSER}/psd/*firefox* 1183blacklist ${RUNUSER}/psd/*firefox*
1184blacklist /etc/ssmtp
1184blacklist /tmp/.wine-* 1185blacklist /tmp/.wine-*
1185blacklist /tmp/akonadi-* 1186blacklist /tmp/akonadi-*
1186blacklist /var/games/nethack 1187blacklist /var/games/nethack
diff --git a/etc/profile-m-z/ssmtp.profile b/etc/profile-m-z/ssmtp.profile
new file mode 100644
index 000000000..1a224e7b0
--- /dev/null
+++ b/etc/profile-m-z/ssmtp.profile
@@ -0,0 +1,75 @@
1# Firejail profile for ssmtp
2# Description: Extremely simple MTA to get mail off the system to a mailhub
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include ssmtp.local
7# Persistent global definitions
8include globals.local
9
10blacklist ${RUNUSER}
11blacklist /usr/libexec
12
13noblacklist /etc/logcheck
14noblacklist /etc/ssmtp
15noblacklist /sbin
16noblacklist /usr/sbin
17
18noblacklist ${DOCUMENTS}
19include disable-common.inc
20include disable-devel.inc
21include disable-exec.inc
22include disable-interpreters.inc
23include disable-proc.inc
24include disable-programs.inc
25include disable-shell.inc
26include disable-xdg.inc
27include disable-X11.inc
28
29mkfile ${HOME}/dead.letter
30whitelist ${HOME}/dead.letter
31whitelist ${DOCUMENTS}
32whitelist ${DOWNLOADS}
33include whitelist-common.inc
34include whitelist-run-common.inc
35include whitelist-runuser-common.inc
36include whitelist-usr-share-common.inc
37include whitelist-var-common.inc
38
39apparmor
40caps.drop all
41ipc-namespace
42machine-id
43netfilter
44no3d
45nodvd
46#nogroups breaks app
47noinput
48nonewprivs
49noprinters
50#noroot breaks app
51nosound
52notv
53nou2f
54novideo
55protocol unix,inet,inet6
56seccomp
57seccomp.block-secondary
58tracelog
59
60disable-mnt
61# private works but then we lose ${HOME}/dead.letter
62# which is useful to get notified on mail issues
63#private
64private-bin mailq,newaliases,sendmail,ssmtp
65private-cache
66private-dev
67private-tmp
68
69dbus-user none
70dbus-system none
71
72memory-deny-write-execute
73restrict-namespaces
74read-only ${HOME}
75read-write ${HOME}/dead.letter