1user_mail_selinux(8) SELinux Policy user_mail user_mail_selinux(8)
2
3
4
6 user_mail_selinux - Security Enhanced Linux Policy for the user_mail
7 processes
8
10 Security-Enhanced Linux secures the user_mail processes via flexible
11 mandatory access control.
12
13 The user_mail processes execute with the user_mail_t SELinux type. You
14 can check if you have these processes running by executing the ps com‐
15 mand with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep user_mail_t
20
21
22
24 The user_mail_t SELinux type can be entered via the sendmail_exec_t
25 file type.
26
27 The default entrypoint paths for the user_mail_t domain are the follow‐
28 ing:
29
30 /usr/sbin/sendmail(.sendmail)?, /usr/bin/esmtp, /usr/sbin/rmail,
31 /usr/sbin/ssmtp, /usr/lib/sendmail, /usr/bin/esmtp-wrapper,
32 /var/qmail/bin/sendmail, /usr/sbin/sendmail.postfix
33
35 SELinux defines process types (domains) for each process running on the
36 system
37
38 You can see the context of a process using the -Z option to ps
39
40 Policy governs the access confined processes have to files. SELinux
41 user_mail policy is very flexible allowing users to setup their
42 user_mail processes in as secure a method as possible.
43
44 The following process types are defined for user_mail:
45
46 user_mail_t
47
48 Note: semanage permissive -a user_mail_t can be used to make the
49 process type user_mail_t permissive. SELinux does not deny access to
50 permissive process types, but the AVC (SELinux denials) messages are
51 still generated.
52
53
55 SELinux policy is customizable based on least access required.
56 user_mail policy is extremely flexible and has several booleans that
57 allow you to manipulate the policy and run user_mail with the tightest
58 access possible.
59
60
61
62 If you want to allow users to resolve user passwd entries directly from
63 ldap rather then using a sssd server, you must turn on the authlo‐
64 gin_nsswitch_use_ldap boolean. Disabled by default.
65
66 setsebool -P authlogin_nsswitch_use_ldap 1
67
68
69
70 If you want to allow all domains to execute in fips_mode, you must turn
71 on the fips_mode boolean. Enabled by default.
72
73 setsebool -P fips_mode 1
74
75
76
77 If you want to allow confined applications to run with kerberos, you
78 must turn on the kerberos_enabled boolean. Disabled by default.
79
80 setsebool -P kerberos_enabled 1
81
82
83
84 If you want to allow system to run with NIS, you must turn on the
85 nis_enabled boolean. Disabled by default.
86
87 setsebool -P nis_enabled 1
88
89
90
91 If you want to allow confined applications to use nscd shared memory,
92 you must turn on the nscd_use_shm boolean. Disabled by default.
93
94 setsebool -P nscd_use_shm 1
95
96
97
98 If you want to support SAMBA home directories, you must turn on the
99 use_samba_home_dirs boolean. Disabled by default.
100
101 setsebool -P use_samba_home_dirs 1
102
103
104
106 The SELinux process type user_mail_t can manage files labeled with the
107 following file types. The paths listed are the default paths for these
108 file types. Note the processes UID still need to have DAC permissions.
109
110 cifs_t
111
112
113 courier_spool_t
114
115 /var/spool/courier(/.*)?
116 /var/spool/authdaemon(/.*)?
117
118 etc_aliases_t
119
120 /etc/mail/.*.db
121 /etc/mail/aliases.*
122 /etc/postfix/aliases.*
123 /etc/aliases
124 /etc/aliases.db
125
126 etc_mail_t
127
128 /etc/mail(/.*)?
129
130 exim_log_t
131
132 /var/log/exim[0-9]?(/.*)?
133
134 exim_spool_t
135
136 /var/spool/exim[0-9]?(/.*)?
137
138 mail_home_rw_t
139
140 /root/Maildir(/.*)?
141 /root/.esmtp_queue(/.*)?
142 /var/lib/arpwatch/.esmtp_queue(/.*)?
143 /home/[^/]+/.maildir(/.*)?
144 /home/[^/]+/Maildir(/.*)?
145 /home/[^/]+/.esmtp_queue(/.*)?
146
147 mail_home_t
148
149 /root/.mailrc
150 /root/.esmtprc
151 /root/.forward
152 /root/dead.letter
153 /home/[^/]+/.forward[^/]*
154 /home/[^/]+/.mailrc
155 /home/[^/]+/.esmtprc
156 /home/[^/]+/dead.letter
157
158 mail_spool_t
159
160 /var/mail(/.*)?
161 /var/spool/imap(/.*)?
162 /var/spool/mail(/.*)?
163 /var/spool/smtpd(/.*)?
164
165 mqueue_spool_t
166
167 /var/spool/(client)?mqueue(/.*)?
168 /var/spool/mqueue.in(/.*)?
169
170 nfs_t
171
172
173 sendmail_log_t
174
175 /var/log/mail(/.*)?
176 /var/log/sendmail.st.*
177
178 user_home_t
179
180 /home/[^/]+/.+
181
182 user_mail_tmp_t
183
184
185 user_tmp_t
186
187 /dev/shm/mono.*
188 /var/run/user(/.*)?
189 /tmp/.ICE-unix(/.*)?
190 /tmp/.X11-unix(/.*)?
191 /dev/shm/pulse-shm.*
192 /tmp/.X0-lock
193 /tmp/hsperfdata_root
194 /var/tmp/hsperfdata_root
195 /home/[^/]+/tmp
196 /home/[^/]+/.tmp
197 /tmp/gconfd-[^/]+
198
199 uucpd_spool_t
200
201 /var/spool/uucp(/.*)?
202 /var/spool/uucppublic(/.*)?
203
204
206 semanage fcontext can also be used to manipulate default file context
207 mappings.
208
209 semanage permissive can also be used to manipulate whether or not a
210 process type is permissive.
211
212 semanage module can also be used to enable/disable/install/remove pol‐
213 icy modules.
214
215 semanage boolean can also be used to manipulate the booleans
216
217
218 system-config-selinux is a GUI tool available to customize SELinux pol‐
219 icy settings.
220
221
223 This manual page was auto-generated using sepolicy manpage .
224
225
227 selinux(8), user_mail(8), semanage(8), restorecon(8), chcon(1), sepol‐
228 icy(8), setsebool(8)
229
230
231
232user_mail 19-12-02 user_mail_selinux(8)