1exim_selinux(8)               SELinux Policy exim              exim_selinux(8)
2
3
4

NAME

6       exim_selinux - Security Enhanced Linux Policy for the exim processes
7

DESCRIPTION

9       Security-Enhanced  Linux secures the exim processes via flexible manda‐
10       tory access control.
11
12       The exim processes execute with the exim_t SELinux type. You can  check
13       if  you  have  these processes running by executing the ps command with
14       the -Z qualifier.
15
16       For example:
17
18       ps -eZ | grep exim_t
19
20
21

ENTRYPOINTS

23       The exim_t SELinux type can be entered via the exim_exec_t file type.
24
25       The default entrypoint paths for the exim_t domain are the following:
26
27       /usr/sbin/exim[0-9]?, /usr/sbin/exim_tidydb
28

PROCESS TYPES

30       SELinux defines process types (domains) for each process running on the
31       system
32
33       You can see the context of a process using the -Z option to ps
34
35       Policy  governs  the  access confined processes have to files.  SELinux
36       exim policy is very flexible allowing users to setup  their  exim  pro‐
37       cesses in as secure a method as possible.
38
39       The following process types are defined for exim:
40
41       exim_t
42
43       Note:  semanage  permissive  -a  exim_t can be used to make the process
44       type exim_t permissive. SELinux does  not  deny  access  to  permissive
45       process  types, but the AVC (SELinux denials) messages are still gener‐
46       ated.
47
48

BOOLEANS

50       SELinux policy is customizable based on least  access  required.   exim
51       policy is extremely flexible and has several booleans that allow you to
52       manipulate the policy and run exim with the tightest access possible.
53
54
55
56       If you want to determine whether exim can  connect  to  databases,  you
57       must turn on the exim_can_connect_db boolean. Disabled by default.
58
59       setsebool -P exim_can_connect_db 1
60
61
62
63       If  you  want  to  determine  whether exim can create, read, write, and
64       delete generic user content files,  you  must  turn  on  the  exim_man‐
65       age_user_files boolean. Disabled by default.
66
67       setsebool -P exim_manage_user_files 1
68
69
70
71       If  you  want  to  determine whether exim can read generic user content
72       files, you must turn on the exim_read_user_files boolean.  Disabled  by
73       default.
74
75       setsebool -P exim_read_user_files 1
76
77
78
79       If you want to allow users to resolve user passwd entries directly from
80       ldap rather then using a sssd server, you  must  turn  on  the  authlo‐
81       gin_nsswitch_use_ldap boolean. Disabled by default.
82
83       setsebool -P authlogin_nsswitch_use_ldap 1
84
85
86
87       If you want to allow all domains to execute in fips_mode, you must turn
88       on the fips_mode boolean. Enabled by default.
89
90       setsebool -P fips_mode 1
91
92
93
94       If you want to allow confined applications to run  with  kerberos,  you
95       must turn on the kerberos_enabled boolean. Enabled by default.
96
97       setsebool -P kerberos_enabled 1
98
99
100
101       If  you  want  to  allow  system  to run with NIS, you must turn on the
102       nis_enabled boolean. Disabled by default.
103
104       setsebool -P nis_enabled 1
105
106
107
108       If you want to allow confined applications to use nscd  shared  memory,
109       you must turn on the nscd_use_shm boolean. Enabled by default.
110
111       setsebool -P nscd_use_shm 1
112
113
114

MANAGED FILES

116       The  SELinux process type exim_t can manage files labeled with the fol‐
117       lowing file types.  The paths listed are the default  paths  for  these
118       file types.  Note the processes UID still need to have DAC permissions.
119
120       arpwatch_tmp_t
121
122
123       cifs_t
124
125
126       cluster_conf_t
127
128            /etc/cluster(/.*)?
129
130       cluster_var_lib_t
131
132            /var/lib/pcsd(/.*)?
133            /var/lib/cluster(/.*)?
134            /var/lib/openais(/.*)?
135            /var/lib/pengine(/.*)?
136            /var/lib/corosync(/.*)?
137            /usr/lib/heartbeat(/.*)?
138            /var/lib/heartbeat(/.*)?
139            /var/lib/pacemaker(/.*)?
140
141       cluster_var_run_t
142
143            /var/run/crm(/.*)?
144            /var/run/cman_.*
145            /var/run/rsctmp(/.*)?
146            /var/run/aisexec.*
147            /var/run/heartbeat(/.*)?
148            /var/run/corosync-qnetd(/.*)?
149            /var/run/corosync-qdevice(/.*)?
150            /var/run/corosync.pid
151            /var/run/cpglockd.pid
152            /var/run/rgmanager.pid
153            /var/run/cluster/rgmanager.sk
154
155       dovecot_spool_t
156
157            /var/spool/dovecot(/.*)?
158
159       ecryptfs_t
160
161            /home/[^/]+/.Private(/.*)?
162            /home/[^/]+/.ecryptfs(/.*)?
163
164       exim_spool_t
165
166            /var/spool/exim[0-9]?(/.*)?
167
168       exim_tmp_t
169
170
171       exim_var_lib_t
172
173            /var/lib/exim[0-9]?(/.*)?
174
175       exim_var_run_t
176
177            /var/run/exim[0-9]?.pid
178            /var/run/exim[0-9]?(/.*)?
179
180       faillog_t
181
182            /var/log/btmp.*
183            /var/log/faillog.*
184            /var/log/tallylog.*
185            /var/run/faillock(/.*)?
186
187       fusefs_t
188
189            /var/run/user/[^/]*/gvfs
190
191       mail_home_rw_t
192
193            /root/Maildir(/.*)?
194            /root/.esmtp_queue(/.*)?
195            /home/[^/]+/.maildir(/.*)?
196            /home/[^/]+/Maildir(/.*)?
197            /home/[^/]+/.esmtp_queue(/.*)?
198
199       mail_spool_t
200
201            /var/mail(/.*)?
202            /var/spool/imap(/.*)?
203            /var/spool/mail(/.*)?
204            /var/spool/smtpd(/.*)?
205
206       mailman_data_t
207
208            /etc/mailman.*
209            /var/lib/mailman(/.*)?
210            /var/spool/mailman.*
211
212       nfs_t
213
214
215       root_t
216
217            /sysroot/ostree/deploy/.*-atomic/deploy(/.*)?
218            /
219            /initrd
220
221       sendmail_tmp_t
222
223
224       user_home_t
225
226            /home/[^/]+/.+
227
228       user_tmp_t
229
230            /dev/shm/mono.*
231            /var/run/user(/.*)?
232            /tmp/.ICE-unix(/.*)?
233            /tmp/.X11-unix(/.*)?
234            /dev/shm/pulse-shm.*
235            /tmp/.X0-lock
236            /tmp/hsperfdata_root
237            /var/tmp/hsperfdata_root
238            /home/[^/]+/tmp
239            /home/[^/]+/.tmp
240            /tmp/gconfd-[^/]+
241
242

FILE CONTEXTS

244       SELinux requires files to have an extended attribute to define the file
245       type.
246
247       You can see the context of a file using the -Z option to ls
248
249       Policy governs the access  confined  processes  have  to  these  files.
250       SELinux exim policy is very flexible allowing users to setup their exim
251       processes in as secure a method as possible.
252
253       EQUIVALENCE DIRECTORIES
254
255
256       exim policy stores data with  multiple  different  file  context  types
257       under  the  /var/run/exim[0-9]?  directory.  If you would like to store
258       the data in a different directory you can use the semanage  command  to
259       create  an equivalence mapping.  If you wanted to store this data under
260       the /srv dirctory you would execute the following command:
261
262       semanage fcontext -a -e /var/run/exim[0-9]? /srv/exim[0-9]?
263       restorecon -R -v /srv/exim[0-9]?
264
265       STANDARD FILE CONTEXT
266
267       SELinux defines the file context types for the exim, if you  wanted  to
268       store  files  with  these types in a diffent paths, you need to execute
269       the semanage command  to  sepecify  alternate  labeling  and  then  use
270       restorecon to put the labels on disk.
271
272       semanage fcontext -a -t exim_var_run_t '/srv/myexim_content(/.*)?'
273       restorecon -R -v /srv/myexim_content
274
275       Note:  SELinux  often  uses  regular expressions to specify labels that
276       match multiple files.
277
278       The following file types are defined for exim:
279
280
281
282       exim_exec_t
283
284       - Set files with the exim_exec_t type, if you  want  to  transition  an
285       executable to the exim_t domain.
286
287
288       Paths:
289            /usr/sbin/exim[0-9]?, /usr/sbin/exim_tidydb
290
291
292       exim_initrc_exec_t
293
294       - Set files with the exim_initrc_exec_t type, if you want to transition
295       an executable to the exim_initrc_t domain.
296
297
298
299       exim_keytab_t
300
301       - Set files with the exim_keytab_t type, if you want to treat the files
302       as kerberos keytab files.
303
304
305
306       exim_log_t
307
308       -  Set files with the exim_log_t type, if you want to treat the data as
309       exim log data, usually stored under the /var/log directory.
310
311
312
313       exim_spool_t
314
315       - Set files with the exim_spool_t type, if you want to store  the  exim
316       files under the /var/spool directory.
317
318
319
320       exim_tmp_t
321
322       -  Set files with the exim_tmp_t type, if you want to store exim tempo‐
323       rary files in the /tmp directories.
324
325
326
327       exim_var_lib_t
328
329       - Set files with the exim_var_lib_t type, if you want to store the exim
330       files under the /var/lib directory.
331
332
333
334       exim_var_run_t
335
336       - Set files with the exim_var_run_t type, if you want to store the exim
337       files under the /run or /var/run directory.
338
339
340       Paths:
341            /var/run/exim[0-9]?.pid, /var/run/exim[0-9]?(/.*)?
342
343
344       Note: File context can be temporarily modified with the chcon  command.
345       If  you want to permanently change the file context you need to use the
346       semanage fcontext command.  This will modify the SELinux labeling data‐
347       base.  You will need to use restorecon to apply the labels.
348
349

COMMANDS

351       semanage  fcontext  can also be used to manipulate default file context
352       mappings.
353
354       semanage permissive can also be used to manipulate  whether  or  not  a
355       process type is permissive.
356
357       semanage  module can also be used to enable/disable/install/remove pol‐
358       icy modules.
359
360       semanage boolean can also be used to manipulate the booleans
361
362
363       system-config-selinux is a GUI tool available to customize SELinux pol‐
364       icy settings.
365
366

AUTHOR

368       This manual page was auto-generated using sepolicy manpage .
369
370

SEE ALSO

372       selinux(8), exim(8), semanage(8), restorecon(8), chcon(1), sepolicy(8),
373       setsebool(8)
374
375
376
377exim                               19-10-08                    exim_selinux(8)
Impressum