1postfix_local_selinux(8) SELinux Policy postfix_local postfix_local_selinux(8)
2
3
4

NAME

6       postfix_local_selinux  -  Security  Enhanced Linux Policy for the post‐
7       fix_local processes
8

DESCRIPTION

10       Security-Enhanced Linux secures the postfix_local processes via  flexi‐
11       ble mandatory access control.
12
13       The  postfix_local  processes  execute with the postfix_local_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 postfix_local_t
20
21
22

ENTRYPOINTS

24       The   postfix_local_t  SELinux  type  can  be  entered  via  the  post‐
25       fix_local_exec_t file type.
26
27       The default entrypoint paths for the  postfix_local_t  domain  are  the
28       following:
29
30       /usr/libexec/postfix/local
31

PROCESS TYPES

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

BOOLEANS

53       SELinux  policy  is customizable based on least access required.  post‐
54       fix_local policy is extremely flexible and has  several  booleans  that
55       allow  you  to  manipulate  the  policy  and run postfix_local with the
56       tightest access possible.
57
58
59
60       If you  want  to  allow  postfix_local  domain  full  write  access  to
61       mail_spool    directories,    you    must    turn    on    the    post‐
62       fix_local_write_mail_spool boolean. Enabled by default.
63
64       setsebool -P postfix_local_write_mail_spool 1
65
66
67
68       If you want to allow users to resolve user passwd entries directly from
69       ldap  rather  then  using  a  sssd server, you must turn on the authlo‐
70       gin_nsswitch_use_ldap boolean. Disabled by default.
71
72       setsebool -P authlogin_nsswitch_use_ldap 1
73
74
75
76       If you want to deny any process from ptracing or  debugging  any  other
77       processes,  you  must  turn  on  the  deny_ptrace  boolean.  Enabled by
78       default.
79
80       setsebool -P deny_ptrace 1
81
82
83
84       If you want to allow any process  to  mmap  any  file  on  system  with
85       attribute  file_type,  you must turn on the domain_can_mmap_files bool‐
86       ean. Enabled by default.
87
88       setsebool -P domain_can_mmap_files 1
89
90
91
92       If you want to allow all domains write to kmsg_device, while kernel  is
93       executed  with  systemd.log_target=kmsg parameter, you must turn on the
94       domain_can_write_kmsg boolean. Disabled by default.
95
96       setsebool -P domain_can_write_kmsg 1
97
98
99
100       If you want to allow all domains to use other domains file descriptors,
101       you must turn on the domain_fd_use boolean. Enabled by default.
102
103       setsebool -P domain_fd_use 1
104
105
106
107       If  you  want to allow all domains to have the kernel load modules, you
108       must  turn  on  the  domain_kernel_load_modules  boolean.  Disabled  by
109       default.
110
111       setsebool -P domain_kernel_load_modules 1
112
113
114
115       If you want to allow all domains to execute in fips_mode, you must turn
116       on the fips_mode boolean. Enabled by default.
117
118       setsebool -P fips_mode 1
119
120
121
122       If you want to enable reading of urandom for all domains, you must turn
123       on the global_ssp boolean. Disabled by default.
124
125       setsebool -P global_ssp 1
126
127
128
129       If  you  want  to allow confined applications to run with kerberos, you
130       must turn on the kerberos_enabled boolean. Enabled by default.
131
132       setsebool -P kerberos_enabled 1
133
134
135
136       If you want to allow system to run with  NIS,  you  must  turn  on  the
137       nis_enabled boolean. Disabled by default.
138
139       setsebool -P nis_enabled 1
140
141
142
143       If  you  want to allow confined applications to use nscd shared memory,
144       you must turn on the nscd_use_shm boolean. Disabled by default.
145
146       setsebool -P nscd_use_shm 1
147
148
149
150       If you want to support ecryptfs home directories, you must turn on  the
151       use_ecryptfs_home_dirs boolean. Disabled by default.
152
153       setsebool -P use_ecryptfs_home_dirs 1
154
155
156
157       If  you  want  to support fusefs home directories, you must turn on the
158       use_fusefs_home_dirs boolean. Disabled by default.
159
160       setsebool -P use_fusefs_home_dirs 1
161
162
163
164       If you want to support NFS home  directories,  you  must  turn  on  the
165       use_nfs_home_dirs boolean. Disabled by default.
166
167       setsebool -P use_nfs_home_dirs 1
168
169
170
171       If  you  want  to  support SAMBA home directories, you must turn on the
172       use_samba_home_dirs boolean. Disabled by default.
173
174       setsebool -P use_samba_home_dirs 1
175
176
177

MANAGED FILES

179       The SELinux process type postfix_local_t can manage files labeled  with
180       the  following  file types.  The paths listed are the default paths for
181       these file types.  Note the processes UID still need to have  DAC  per‐
182       missions.
183
184       anon_inodefs_t
185
186
187       cifs_t
188
189
190       dovecot_spool_t
191
192            /var/spool/dovecot(/.*)?
193
194       ecryptfs_t
195
196            /home/[^/]+/.Private(/.*)?
197            /home/[^/]+/.ecryptfs(/.*)?
198
199       fusefs_t
200
201            /var/run/user/[^/]*/gvfs
202
203       mail_home_rw_t
204
205            /root/Maildir(/.*)?
206            /root/.esmtp_queue(/.*)?
207            /home/[^/]+/.maildir(/.*)?
208            /home/[^/]+/Maildir(/.*)?
209            /home/[^/]+/.esmtp_queue(/.*)?
210
211       mail_spool_t
212
213            /var/mail(/.*)?
214            /var/spool/imap(/.*)?
215            /var/spool/mail(/.*)?
216            /var/spool/smtpd(/.*)?
217
218       mailman_data_t
219
220            /etc/mailman.*
221            /var/lib/mailman(/.*)?
222            /var/spool/mailman.*
223
224       nfs_t
225
226
227       postfix_local_tmp_t
228
229
230       postfix_spool_t
231
232            /var/spool/postfix.*
233            /var/spool/postfix/defer(/.*)?
234            /var/spool/postfix/flush(/.*)?
235            /var/spool/postfix/deferred(/.*)?
236            /var/spool/postfix/maildrop(/.*)?
237
238       postfix_var_run_t
239
240            /var/spool/postfix/pid/.*
241
242       user_home_t
243
244            /home/[^/]+/.+
245
246

FILE CONTEXTS

248       SELinux requires files to have an extended attribute to define the file
249       type.
250
251       You can see the context of a file using the -Z option to ls
252
253       Policy governs the access  confined  processes  have  to  these  files.
254       SELinux  postfix_local  policy is very flexible allowing users to setup
255       their postfix_local processes in as secure a method as possible.
256
257       STANDARD FILE CONTEXT
258
259       SELinux defines the file context types for the  postfix_local,  if  you
260       wanted  to store files with these types in a diffent paths, you need to
261       execute the semanage command to sepecify alternate  labeling  and  then
262       use restorecon to put the labels on disk.
263
264       semanage  fcontext -a -t postfix_local_tmp_t '/srv/mypostfix_local_con‐
265       tent(/.*)?'
266       restorecon -R -v /srv/mypostfix_local_content
267
268       Note: SELinux often uses regular expressions  to  specify  labels  that
269       match multiple files.
270
271       The following file types are defined for postfix_local:
272
273
274
275       postfix_local_exec_t
276
277       -  Set files with the postfix_local_exec_t type, if you want to transi‐
278       tion an executable to the postfix_local_t domain.
279
280
281
282       postfix_local_tmp_t
283
284       - Set files with the postfix_local_tmp_t type, if  you  want  to  store
285       postfix local temporary files in the /tmp directories.
286
287
288
289       Note:  File context can be temporarily modified with the chcon command.
290       If you want to permanently change the file context you need to use  the
291       semanage fcontext command.  This will modify the SELinux labeling data‐
292       base.  You will need to use restorecon to apply the labels.
293
294

COMMANDS

296       semanage fcontext can also be used to manipulate default  file  context
297       mappings.
298
299       semanage  permissive  can  also  be used to manipulate whether or not a
300       process type is permissive.
301
302       semanage module can also be used to enable/disable/install/remove  pol‐
303       icy modules.
304
305       semanage boolean can also be used to manipulate the booleans
306
307
308       system-config-selinux is a GUI tool available to customize SELinux pol‐
309       icy settings.
310
311

AUTHOR

313       This manual page was auto-generated using sepolicy manpage .
314
315

SEE ALSO

317       selinux(8),  postfix_local(8),  semanage(8),  restorecon(8),  chcon(1),
318       sepolicy(8) , setsebool(8)
319
320
321
322postfix_local                      19-04-25           postfix_local_selinux(8)
Impressum