1system_mail_selinux(8) SELinux Policy system_mail system_mail_selinux(8)
2
3
4
6 system_mail_selinux - Security Enhanced Linux Policy for the sys‐
7 tem_mail processes
8
10 Security-Enhanced Linux secures the system_mail processes via flexible
11 mandatory access control.
12
13 The system_mail processes execute with the system_mail_t SELinux type.
14 You can check if you have these processes running by executing the ps
15 command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep system_mail_t
20
21
22
24 SELinux defines process types (domains) for each process running on the
25 system
26
27 You can see the context of a process using the -Z option to ps
28
29 Policy governs the access confined processes have to files. SELinux
30 system_mail policy is very flexible allowing users to setup their sys‐
31 tem_mail processes in as secure a method as possible.
32
33 The following process types are defined for system_mail:
34
35 system_mail_t
36
37 Note: semanage permissive -a system_mail_t can be used to make the
38 process type system_mail_t permissive. SELinux does not deny access to
39 permissive process types, but the AVC (SELinux denials) messages are
40 still generated.
41
42
44 SELinux policy is customizable based on least access required. sys‐
45 tem_mail policy is extremely flexible and has several booleans that
46 allow you to manipulate the policy and run system_mail with the tight‐
47 est access possible.
48
49
50
51 If you want to allow all domains to execute in fips_mode, you must turn
52 on the fips_mode boolean. Enabled by default.
53
54 setsebool -P fips_mode 1
55
56
57
58 If you want to determine whether Gitosis can send mail, you must turn
59 on the gitosis_can_sendmail boolean. Disabled by default.
60
61 setsebool -P gitosis_can_sendmail 1
62
63
64
65 If you want to allow http daemon to send mail, you must turn on the
66 httpd_can_sendmail boolean. Disabled by default.
67
68 setsebool -P httpd_can_sendmail 1
69
70
71
72 If you want to allow system to run with NIS, you must turn on the
73 nis_enabled boolean. Disabled by default.
74
75 setsebool -P nis_enabled 1
76
77
78
79 If you want to allow Redis to run redis-sentinal notification scripts,
80 you must turn on the redis_enable_notify boolean. Disabled by default.
81
82 setsebool -P redis_enable_notify 1
83
84
85
86 If you want to support ecryptfs home directories, you must turn on the
87 use_ecryptfs_home_dirs boolean. Disabled by default.
88
89 setsebool -P use_ecryptfs_home_dirs 1
90
91
92
94 The SELinux process type system_mail_t can manage files labeled with
95 the following file types. The paths listed are the default paths for
96 these file types. Note the processes UID still need to have DAC per‐
97 missions.
98
99 anon_inodefs_t
100
101
102 cifs_t
103
104
105 courier_spool_t
106
107 /var/spool/courier(/.*)?
108 /var/spool/authdaemon(/.*)?
109
110 ecryptfs_t
111
112 /home/[^/]+/.Private(/.*)?
113 /home/[^/]+/.ecryptfs(/.*)?
114
115 etc_aliases_t
116
117 /etc/mail/.*.db
118 /etc/mail/aliases.*
119 /etc/postfix/aliases.*
120 /etc/aliases
121 /etc/aliases.db
122
123 etc_mail_t
124
125 /etc/mail(/.*)?
126
127 exim_log_t
128
129 /var/log/exim[0-9]?(/.*)?
130
131 exim_spool_t
132
133 /var/spool/exim[0-9]?(/.*)?
134
135 mail_home_rw_t
136
137 /root/Maildir(/.*)?
138 /root/.esmtp_queue(/.*)?
139 /var/lib/arpwatch/.esmtp_queue(/.*)?
140 /home/[^/]+/.maildir(/.*)?
141 /home/[^/]+/Maildir(/.*)?
142 /home/[^/]+/.esmtp_queue(/.*)?
143
144 mail_home_t
145
146 /root/.mailrc
147 /root/.esmtprc
148 /root/.forward
149 /root/dead.letter
150 /home/[^/]+/.forward[^/]*
151 /home/[^/]+/.mailrc
152 /home/[^/]+/.esmtprc
153 /home/[^/]+/dead.letter
154
155 mail_spool_t
156
157 /var/mail(/.*)?
158 /var/spool/imap(/.*)?
159 /var/spool/mail(/.*)?
160 /var/spool/smtpd(/.*)?
161
162 mqueue_spool_t
163
164 /var/spool/(client)?mqueue(/.*)?
165 /var/spool/mqueue.in(/.*)?
166
167 munin_var_lib_t
168
169 /var/lib/munin(/.*)?
170
171 nfs_t
172
173
174 qmail_spool_t
175
176 /var/qmail/queue(/.*)?
177
178 sendmail_log_t
179
180 /var/log/mail(/.*)?
181 /var/log/sendmail.st.*
182
183 uucpd_spool_t
184
185 /var/spool/uucp(/.*)?
186 /var/spool/uucppublic(/.*)?
187
188
190 semanage fcontext can also be used to manipulate default file context
191 mappings.
192
193 semanage permissive can also be used to manipulate whether or not a
194 process type is permissive.
195
196 semanage module can also be used to enable/disable/install/remove pol‐
197 icy modules.
198
199 semanage boolean can also be used to manipulate the booleans
200
201
202 system-config-selinux is a GUI tool available to customize SELinux pol‐
203 icy settings.
204
205
207 This manual page was auto-generated using sepolicy manpage .
208
209
211 selinux(8), system_mail(8), semanage(8), restorecon(8), chcon(1),
212 sepolicy(8), setsebool(8)
213
214
215
216system_mail 21-03-26 system_mail_selinux(8)