1local_login_selinux(8) SELinux Policy local_login local_login_selinux(8)
2
3
4
6 local_login_selinux - Security Enhanced Linux Policy for the
7 local_login processes
8
10 Security-Enhanced Linux secures the local_login processes via flexible
11 mandatory access control.
12
13 The local_login processes execute with the local_login_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 local_login_t
20
21
22
24 The local_login_t SELinux type can be entered via the login_exec_t file
25 type.
26
27 The default entrypoint paths for the local_login_t domain are the fol‐
28 lowing:
29
30 /bin/login, /usr/kerberos/sbin/login.krb5
31
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 local_login policy is very flexible allowing users to setup their
40 local_login processes in as secure a method as possible.
41
42 The following process types are defined for local_login:
43
44 local_login_t
45
46 Note: semanage permissive -a local_login_t can be used to make the
47 process type local_login_t permissive. SELinux does not deny access to
48 permissive process types, but the AVC (SELinux denials) messages are
49 still generated.
50
51
53 SELinux policy is customizable based on least access required.
54 local_login policy is extremely flexible and has several booleans that
55 allow you to manipulate the policy and run local_login with the tight‐
56 est access possible.
57
58
59
60 If you want to allow direct login to the console device. Required for
61 System 390, you must turn on the allow_console_login boolean. Enabled
62 by default.
63
64 setsebool -P allow_console_login 1
65
66
67
68 If you want to allow all daemons to write corefiles to /, you must turn
69 on the allow_daemons_dump_core boolean. Disabled by default.
70
71 setsebool -P allow_daemons_dump_core 1
72
73
74
75 If you want to allow all daemons to use tcp wrappers, you must turn on
76 the allow_daemons_use_tcp_wrapper boolean. Disabled by default.
77
78 setsebool -P allow_daemons_use_tcp_wrapper 1
79
80
81
82 If you want to allow all daemons the ability to read/write terminals,
83 you must turn on the allow_daemons_use_tty boolean. Disabled by
84 default.
85
86 setsebool -P allow_daemons_use_tty 1
87
88
89
90 If you want to allow all domains to use other domains file descriptors,
91 you must turn on the allow_domain_fd_use boolean. Enabled by default.
92
93 setsebool -P allow_domain_fd_use 1
94
95
96
97 If you want to allow confined applications to run with kerberos, you
98 must turn on the allow_kerberos boolean. Enabled by default.
99
100 setsebool -P allow_kerberos 1
101
102
103
104 If you want to enable polyinstantiated directory support, you must turn
105 on the allow_polyinstantiation boolean. Enabled by default.
106
107 setsebool -P allow_polyinstantiation 1
108
109
110
111 If you want to allow sysadm to debug or ptrace all processes, you must
112 turn on the allow_ptrace boolean. Disabled by default.
113
114 setsebool -P allow_ptrace 1
115
116
117
118 If you want to allow system to run with NIS, you must turn on the
119 allow_ypbind boolean. Disabled by default.
120
121 setsebool -P allow_ypbind 1
122
123
124
125 If you want to allow users to login using a radius server, you must
126 turn on the authlogin_radius boolean. Disabled by default.
127
128 setsebool -P authlogin_radius 1
129
130
131
132 If you want to allow users login programs to access /etc/shadow, you
133 must turn on the authlogin_shadow boolean. Disabled by default.
134
135 setsebool -P authlogin_shadow 1
136
137
138
139 If you want to enable cluster mode for daemons, you must turn on the
140 daemons_enable_cluster_mode boolean. Disabled by default.
141
142 setsebool -P daemons_enable_cluster_mode 1
143
144
145
146 If you want to allow all domains to have the kernel load modules, you
147 must turn on the domain_kernel_load_modules boolean. Disabled by
148 default.
149
150 setsebool -P domain_kernel_load_modules 1
151
152
153
154 If you want to allow all domains to execute in fips_mode, you must turn
155 on the fips_mode boolean. Enabled by default.
156
157 setsebool -P fips_mode 1
158
159
160
161 If you want to enable reading of urandom for all domains, you must turn
162 on the global_ssp boolean. Disabled by default.
163
164 setsebool -P global_ssp 1
165
166
167
168 If you want to enable support for upstart as the init program, you must
169 turn on the init_upstart boolean. Enabled by default.
170
171 setsebool -P init_upstart 1
172
173
174
175 If you want to allow confined applications to use nscd shared memory,
176 you must turn on the nscd_use_shm boolean. Enabled by default.
177
178 setsebool -P nscd_use_shm 1
179
180
181
182 If you want to allow a user to login as an unconfined domain, you must
183 turn on the unconfined_login boolean. Enabled by default.
184
185 setsebool -P unconfined_login 1
186
187
188
189 If you want to support NFS home directories, you must turn on the
190 use_nfs_home_dirs boolean. Disabled by default.
191
192 setsebool -P use_nfs_home_dirs 1
193
194
195
196 If you want to support SAMBA home directories, you must turn on the
197 use_samba_home_dirs boolean. Disabled by default.
198
199 setsebool -P use_samba_home_dirs 1
200
201
202
204 The SELinux process type local_login_t can manage files labeled with
205 the following file types. The paths listed are the default paths for
206 these file types. Note the processes UID still need to have DAC per‐
207 missions.
208
209 auth_cache_t
210
211 /var/cache/coolkey(/.*)?
212
213 cluster_conf_t
214
215 /etc/cluster(/.*)?
216
217 cluster_var_lib_t
218
219 /var/lib(64)?/openais(/.*)?
220 /var/lib(64)?/pengine(/.*)?
221 /var/lib(64)?/corosync(/.*)?
222 /usr/lib(64)?/heartbeat(/.*)?
223 /var/lib(64)?/heartbeat(/.*)?
224 /var/lib(64)?/pacemaker(/.*)?
225 /var/lib/cluster(/.*)?
226
227 cluster_var_run_t
228
229 /var/run/crm(/.*)?
230 /var/run/cman_.*
231 /var/run/rsctmp(/.*)?
232 /var/run/aisexec.*
233 /var/run/heartbeat(/.*)?
234 /var/run/cpglockd.pid
235 /var/run/corosync.pid
236 /var/run/rgmanager.pid
237 /var/run/cluster/rgmanager.sk
238
239 etc_t
240
241 /etc/.*
242 /var/db/.*.db
243 /usr/etc(/.*)?
244 /var/ftp/etc(/.*)?
245 /usr/local/etc(/.*)?
246 /var/lib/openshift/.limits.d(/.*)?
247 /var/lib/openshift/.openshift-proxy.d(/.*)?
248 /var/lib/openshift/.stickshift-proxy.d(/.*)?
249 /var/lib/stickshift/.limits.d(/.*)?
250 /var/lib/stickshift/.stickshift-proxy.d(/.*)?
251 /var/named/chroot/etc(/.*)?
252 /etc/ipsec.d/examples(/.*)?
253 /var/spool/postfix/etc(/.*)?
254 /etc
255 /etc/cups/client.conf
256
257 faillog_t
258
259 /var/log/btmp.*
260 /var/log/faillog.*
261 /var/log/tallylog.*
262 /var/run/faillock(/.*)?
263
264 initrc_tmp_t
265
266
267 initrc_var_run_t
268
269 /var/run/utmp
270 /var/run/random-seed
271 /var/run/runlevel.dir
272 /var/run/setmixer_flag
273
274 krb5_host_rcache_t
275
276 /var/cache/krb5rcache(/.*)?
277 /var/tmp/host_0
278 /var/tmp/HTTP_23
279
280 lastlog_t
281
282 /var/log/lastlog.*
283
284 local_login_lock_t
285
286
287 local_login_tmp_t
288
289
290 mnt_t
291
292 /mnt(/[^/]*)
293 /mnt(/[^/]*)?
294 /rhev(/[^/]*)?
295 /media(/[^/]*)
296 /media(/[^/]*)?
297 /etc/rhgb(/.*)?
298 /media/.hal-.*
299 /net
300 /afs
301 /rhev
302 /misc
303
304 pam_var_console_t
305
306 /var/run/console(/.*)?
307
308 pam_var_run_t
309
310 /var/(db|adm)/sudo(/.*)?
311 /var/run/sudo(/.*)?
312 /var/lib/sudo(/.*)?
313 /var/run/sepermit(/.*)?
314 /var/run/pam_mount(/.*)?
315
316 pcscd_var_run_t
317
318 /var/run/pcscd.events(/.*)?
319 /var/run/pcscd.pid
320 /var/run/pcscd.pub
321 /var/run/pcscd.comm
322
323 root_t
324
325 /
326 /initrd
327
328 security_t
329
330
331 shadow_t
332
333 /etc/shadow.*
334 /etc/gshadow.*
335 /var/db/shadow.*
336 /etc/passwd.adjunct.*
337 /etc/.pwd.lock
338 /etc/group.lock
339 /etc/passwd.lock
340
341 tmp_t
342
343 /tmp
344 /usr/tmp
345 /var/tmp
346 /tmp-inst
347 /var/tmp-inst
348 /var/tmp/vi.recover
349
350 user_home_t
351
352 /home/[^/]*/.+
353 /home/staff/.+
354
355 var_auth_t
356
357 /var/ace(/.*)?
358 /var/rsa(/.*)?
359 /var/lib/rsa(/.*)?
360 /var/lib/abl(/.*)?
361 /var/run/pam_ssh(/.*)?
362 /var/lib/pam_ssh(/.*)?
363 /var/lib/pam_shield(/.*)?
364 /var/opt/quest/vas/vasd(/.*)?
365 /var/lib/google-authenticator(/.*)?
366
367 wtmp_t
368
369 /var/log/wtmp.*
370
371 xdm_tmp_t
372
373 /tmp/.X11-unix(/.*)?
374 /tmp/.ICE-unix(/.*)?
375 /tmp/.X0-lock
376
377
379 SELinux requires files to have an extended attribute to define the file
380 type.
381
382 You can see the context of a file using the -Z option to ls
383
384 Policy governs the access confined processes have to these files.
385 SELinux local_login policy is very flexible allowing users to setup
386 their local_login processes in as secure a method as possible.
387
388 STANDARD FILE CONTEXT
389
390 SELinux defines the file context types for the local_login, if you
391 wanted to store files with these types in a diffent paths, you need to
392 execute the semanage command to sepecify alternate labeling and then
393 use restorecon to put the labels on disk.
394
395 semanage fcontext -a -t local_login_tmp_t '/srv/mylocal_login_con‐
396 tent(/.*)?'
397 restorecon -R -v /srv/mylocal_login_content
398
399 Note: SELinux often uses regular expressions to specify labels that
400 match multiple files.
401
402 The following file types are defined for local_login:
403
404
405
406 local_login_home_t
407
408 - Set files with the local_login_home_t type, if you want to store
409 local login files in the users home directory.
410
411
412 Paths:
413 /root/.hushlogin, /home/[^/]*/.hushlogin, /home/staff/.hushlogin
414
415
416 local_login_lock_t
417
418 - Set files with the local_login_lock_t type, if you want to treat the
419 files as local login lock data, stored under the /var/lock directory
420
421
422
423 local_login_tmp_t
424
425 - Set files with the local_login_tmp_t type, if you want to store local
426 login temporary files in the /tmp directories.
427
428
429
430 Note: File context can be temporarily modified with the chcon command.
431 If you want to permanently change the file context you need to use the
432 semanage fcontext command. This will modify the SELinux labeling data‐
433 base. You will need to use restorecon to apply the labels.
434
435
437 semanage fcontext can also be used to manipulate default file context
438 mappings.
439
440 semanage permissive can also be used to manipulate whether or not a
441 process type is permissive.
442
443 semanage module can also be used to enable/disable/install/remove pol‐
444 icy modules.
445
446 semanage boolean can also be used to manipulate the booleans
447
448
449 system-config-selinux is a GUI tool available to customize SELinux pol‐
450 icy settings.
451
452
454 This manual page was auto-generated using sepolicy manpage .
455
456
458 selinux(8), local_login(8), semanage(8), restorecon(8), chcon(1) , set‐
459 sebool(8)
460
461
462
463local_login 15-06-03 local_login_selinux(8)