blob: 0934bd1fe84a93dafa4a143afab82f3f24fdb014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# Local firejail profile for neomutt
name neomutt
quiet
whitelist ${HOME}/.Mail
whitelist ${HOME}/.cache/mutt
whitelist ${HOME}/.mail
whitelist ${HOME}/.msmtprc
whitelist ${HOME}/.signature
whitelist ${HOME}/.vim
whitelist ${HOME}/.viminfo
whitelist ${HOME}/.vimrc
whitelist ${HOME}/.local/share/mail/
whitelist ${HOME}/.config/mutt/
whitelist ${HOME}/.mbsyncrc
whitelist ${HOME}/.config/mbsync
whitelist ${HOME}/.config/msmtp
whitelist ${HOME}/.w3m
whitelist ${HOME}/attachments
noblacklist ${HOME}/.Mail
noblacklist ${HOME}/.cache/mutt
noblacklist ${HOME}/.mail
noblacklist ${HOME}/.msmtprc
noblacklist ${HOME}/.signature
noblacklist ${HOME}/.vim
noblacklist ${HOME}/.viminfo
noblacklist ${HOME}/.vimrc
noblacklist ${HOME}/.local/share/mail/
noblacklist ${HOME}/.config/mutt/
noblacklist ${HOME}/.mbsyncrc
noblacklist ${HOME}/.config/mbsync
noblacklist ${HOME}/.config/msmtp
noblacklist ${HOME}/.w3m
whitelist ${HOME}/attachments
# Access to GPG for encrypting/decrypting/signing mail and passwords with pass
noblacklist ${HOME}/.gnupg
whitelist ${HOME}/.gnupg
noblacklist ${RUNUSER}/gnupg
# This assumes you keep mail account passwords under a separate directory named mail
# This to avoid exposing all passwords to the sandbox, only necessary ones
noblacklist ${HOME}/.local/share/password-store
whitelist ${HOME}/.local/share/password-store/mail
# abook
whitelist ${HOME}/.config/abook
whitelist ${HOME}/.local/share/abook
# Breaks GPG when enabled
#include whitelist-runuser-common.inc
writable-run-user
blacklist /tmp/.X11-unix
blacklist ${RUNUSER}/wayland-*
include disable-common.inc
include disable-devel.inc
include disable-interpreters.inc
include disable-passwdmgr.inc
include disable-programs.inc
# Required for using msmtp with passwordeval
apparmor
caps.drop all
netfilter
no3d
nodvd
nogroups
nonewprivs
noroot
nosound
notv
nou2f
novideo
protocol unix,inet,inet6
seccomp
shell none
disable-mnt
machine-id
whitelist /dev/mapper
whitelist /dev/fd
whitelist /dev/full
whitelist /dev/log
whitelist /dev/null
whitelist /dev/ptmx
whitelist /dev/pts
whitelist /dev/random
whitelist /dev/shm
whitelist /dev/stderr
whitelist /dev/stdin
whitelist /dev/stdout
whitelist /dev/tty
whitelist /dev/urandom
whitelist /dev/zero
|