1logrotate_mail_selinux(8)SELinux Policy logrotate_maillogrotate_mail_selinux(8)
2
3
4
6 logrotate_mail_selinux - Security Enhanced Linux Policy for the logro‐
7 tate_mail processes
8
10 Security-Enhanced Linux secures the logrotate_mail processes via flexi‐
11 ble mandatory access control.
12
13 The logrotate_mail processes execute with the logrotate_mail_t SELinux
14 type. You can check if you have these processes running by executing
15 the ps command with the -Z qualifier.
16
17 For example:
18
19 ps -eZ | grep logrotate_mail_t
20
21
22
24 The logrotate_mail_t SELinux type can be entered via the mta_exec_type,
25 sendmail_exec_t file types.
26
27 The default entrypoint paths for the logrotate_mail_t domain are the
28 following:
29
30 /usr/lib(64)?/sendmail, /bin/mail(x)?, /usr/sbin/sendmail(.sendmail)?,
31 /usr/bin/esmtp, /usr/sbin/ssmtp, /usr/sbin/rmail, /var/qmail/bin/send‐
32 mail, /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 logrotate_mail policy is very flexible allowing users to setup their
42 logrotate_mail processes in as secure a method as possible.
43
44 The following process types are defined for logrotate_mail:
45
46 logrotate_mail_t
47
48 Note: semanage permissive -a logrotate_mail_t can be used to make the
49 process type logrotate_mail_t permissive. SELinux does not deny access
50 to 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. logro‐
56 tate_mail policy is extremely flexible and has several booleans that
57 allow you to manipulate the policy and run logrotate_mail with the
58 tightest access possible.
59
60
61
62 If you want to allow all domains to use other domains file descriptors,
63 you must turn on the allow_domain_fd_use boolean. Enabled by default.
64
65 setsebool -P allow_domain_fd_use 1
66
67
68
69 If you want to allow confined applications to run with kerberos, you
70 must turn on the allow_kerberos boolean. Enabled by default.
71
72 setsebool -P allow_kerberos 1
73
74
75
76 If you want to allow sysadm to debug or ptrace all processes, you must
77 turn on the allow_ptrace boolean. Disabled by default.
78
79 setsebool -P allow_ptrace 1
80
81
82
83 If you want to allow system to run with NIS, you must turn on the
84 allow_ypbind boolean. Disabled by default.
85
86 setsebool -P allow_ypbind 1
87
88
89
90 If you want to allow all domains to have the kernel load modules, you
91 must turn on the domain_kernel_load_modules boolean. Disabled by
92 default.
93
94 setsebool -P domain_kernel_load_modules 1
95
96
97
98 If you want to allow all domains to execute in fips_mode, you must turn
99 on the fips_mode boolean. Enabled by default.
100
101 setsebool -P fips_mode 1
102
103
104
105 If you want to enable reading of urandom for all domains, you must turn
106 on the global_ssp boolean. Disabled by default.
107
108 setsebool -P global_ssp 1
109
110
111
112 If you want to allow confined applications to use nscd shared memory,
113 you must turn on the nscd_use_shm boolean. Enabled by default.
114
115 setsebool -P nscd_use_shm 1
116
117
118
120 The SELinux process type logrotate_mail_t can manage files labeled with
121 the following file types. The paths listed are the default paths for
122 these file types. Note the processes UID still need to have DAC per‐
123 missions.
124
125 courier_spool_t
126
127 /var/spool/courier(/.*)?
128 /var/spool/authdaemon(/.*)?
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 initrc_tmp_t
139
140
141 logrotate_mail_tmp_t
142
143
144 logrotate_tmp_t
145
146
147 mail_home_rw_t
148
149 /root/Maildir(/.*)?
150 /home/[^/]*/Maildir(/.*)?
151 /home/staff/Maildir(/.*)?
152
153 mail_spool_t
154
155 /var/mail(/.*)?
156 /var/spool/mail(/.*)?
157 /var/spool/imap(/.*)?
158
159 mnt_t
160
161 /mnt(/[^/]*)
162 /mnt(/[^/]*)?
163 /rhev(/[^/]*)?
164 /media(/[^/]*)
165 /media(/[^/]*)?
166 /etc/rhgb(/.*)?
167 /media/.hal-.*
168 /net
169 /afs
170 /rhev
171 /misc
172
173 mqueue_spool_t
174
175 /var/spool/(client)?mqueue(/.*)?
176
177 sendmail_log_t
178
179 /var/log/mail(/.*)?
180 /var/log/sendmail.st.*
181
182 tmp_t
183
184 /tmp
185 /usr/tmp
186 /var/tmp
187 /tmp-inst
188 /var/tmp-inst
189 /var/tmp/vi.recover
190
191 uucpd_spool_t
192
193 /var/spool/uucp(/.*)?
194 /var/spool/uucppublic(/.*)?
195
196
198 semanage fcontext can also be used to manipulate default file context
199 mappings.
200
201 semanage permissive can also be used to manipulate whether or not a
202 process type is permissive.
203
204 semanage module can also be used to enable/disable/install/remove pol‐
205 icy modules.
206
207 semanage boolean can also be used to manipulate the booleans
208
209
210 system-config-selinux is a GUI tool available to customize SELinux pol‐
211 icy settings.
212
213
215 This manual page was auto-generated using sepolicy manpage .
216
217
219 selinux(8), logrotate_mail(8), semanage(8), restorecon(8), chcon(1) ,
220 setsebool(8)
221
222
223
224logrotate_mail 15-06-03 logrotate_mail_selinux(8)