1local_login_selinux(8)    SELinux Policy local_login    local_login_selinux(8)
2
3
4

NAME

6       local_login_selinux  - Security Enhanced Linux Policy for the local_lo‐
7       gin processes
8

DESCRIPTION

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

ENTRYPOINTS

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/bin/login, /usr/kerberos/sbin/login.krb5
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       local_login  policy  is very flexible allowing users to setup their lo‐
40       cal_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

BOOLEANS

53       SELinux  policy  is  customizable  based on least access required.  lo‐
54       cal_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 all domains to execute in fips_mode, you must turn
61       on the fips_mode boolean. Enabled by default.
62
63       setsebool -P fips_mode 1
64
65
66
67       If  you  want  to allow confined applications to run with kerberos, you
68       must turn on the kerberos_enabled boolean. Enabled by default.
69
70       setsebool -P kerberos_enabled 1
71
72
73
74       If you want to allow logging in and using the system from /dev/console,
75       you must turn on the login_console_enabled boolean. Enabled by default.
76
77       setsebool -P login_console_enabled 1
78
79
80
81       If  you  want  to  allow  system  to run with NIS, you must turn on the
82       nis_enabled boolean. Disabled by default.
83
84       setsebool -P nis_enabled 1
85
86
87
88       If you want to enable polyinstantiated directory support, you must turn
89       on the polyinstantiation_enabled boolean. Disabled by default.
90
91       setsebool -P polyinstantiation_enabled 1
92
93
94

MANAGED FILES

96       The  SELinux  process  type local_login_t can manage files labeled with
97       the following file types.  The paths listed are the default  paths  for
98       these  file  types.  Note the processes UID still need to have DAC per‐
99       missions.
100
101       auth_cache_t
102
103            /var/cache/coolkey(/.*)?
104
105       auth_home_t
106
107            /root/.yubico(/.*)?
108            /root/.config/Yubico(/.*)?
109            /root/.google_authenticator
110            /root/.google_authenticator~
111            /home/[^/]+/.yubico(/.*)?
112            /home/[^/]+/.config/Yubico(/.*)?
113            /home/[^/]+/.google_authenticator
114            /home/[^/]+/.google_authenticator~
115
116       faillog_t
117
118            /var/log/btmp.*
119            /var/log/faillog.*
120            /var/log/tallylog.*
121            /var/run/faillock(/.*)?
122
123       initrc_var_run_t
124
125            /var/run/utmp
126            /var/run/random-seed
127            /var/run/runlevel.dir
128            /var/run/setmixer_flag
129
130       krb5_host_rcache_t
131
132            /var/tmp/krb5_0.rcache2
133            /var/cache/krb5rcache(/.*)?
134            /var/tmp/nfs_0
135            /var/tmp/DNS_25
136            /var/tmp/host_0
137            /var/tmp/imap_0
138            /var/tmp/HTTP_23
139            /var/tmp/HTTP_48
140            /var/tmp/ldap_55
141            /var/tmp/ldap_487
142            /var/tmp/ldapmap1_0
143
144       lastlog_t
145
146            /var/log/lastlog.*
147
148       local_login_lock_t
149
150
151       pam_var_console_t
152
153            /var/run/console(/.*)?
154
155       pam_var_run_t
156
157            /var/(db|adm)/sudo(/.*)?
158            /var/lib/sudo(/.*)?
159            /var/run/sudo(/.*)?
160            /var/run/pam_ssh(/.*)?
161            /var/run/sepermit(/.*)?
162            /var/run/pam_mount(/.*)?
163            /var/run/pam_timestamp(/.*)?
164
165       security_t
166
167            /selinux
168
169       user_tmp_t
170
171            /dev/shm/mono.*
172            /var/run/user/[^/]+
173            /tmp/.ICE-unix(/.*)?
174            /tmp/.X11-unix(/.*)?
175            /dev/shm/pulse-shm.*
176            /tmp/.X0-lock
177            /var/run/user
178            /tmp/hsperfdata_root
179            /var/tmp/hsperfdata_root
180            /home/[^/]+/tmp
181            /home/[^/]+/.tmp
182            /var/run/user/[0-9]+
183            /tmp/gconfd-[^/]+
184
185       var_auth_t
186
187            /var/ace(/.*)?
188            /var/rsa(/.*)?
189            /var/lib/abl(/.*)?
190            /var/lib/rsa(/.*)?
191            /var/lib/pam_ssh(/.*)?
192            /var/lib/pam_shield(/.*)?
193            /var/opt/quest/vas/vasd(/.*)?
194            /var/lib/google-authenticator(/.*)?
195
196       wtmp_t
197
198            /var/log/wtmp.*
199
200

FILE CONTEXTS

202       SELinux requires files to have an extended attribute to define the file
203       type.
204
205       You can see the context of a file using the -Z option to ls
206
207       Policy  governs  the  access  confined  processes  have to these files.
208       SELinux local_login policy is very flexible  allowing  users  to  setup
209       their local_login processes in as secure a method as possible.
210
211       STANDARD FILE CONTEXT
212
213       SELinux  defines  the  file  context  types for the local_login, if you
214       wanted to store files with these types in a diffent paths, you need  to
215       execute the semanage command to specify alternate labeling and then use
216       restorecon to put the labels on disk.
217
218       semanage fcontext  -a  -t  local_login_lock_t  '/srv/mylocal_login_con‐
219       tent(/.*)?'
220       restorecon -R -v /srv/mylocal_login_content
221
222       Note:  SELinux  often  uses  regular expressions to specify labels that
223       match multiple files.
224
225       The following file types are defined for local_login:
226
227
228
229       local_login_home_t
230
231       - Set files with the local_login_home_t type, if you want to store  lo‐
232       cal login files in the users home directory.
233
234
235       Paths:
236            /root/.hushlogin, /home/[^/]+/.hushlogin
237
238
239       local_login_lock_t
240
241       -  Set files with the local_login_lock_t type, if you want to treat the
242       files as local login lock data, stored under the /var/lock directory
243
244
245
246       Note: File context can be temporarily modified with the chcon  command.
247       If  you want to permanently change the file context you need to use the
248       semanage fcontext command.  This will modify the SELinux labeling data‐
249       base.  You will need to use restorecon to apply the labels.
250
251

COMMANDS

253       semanage  fcontext  can also be used to manipulate default file context
254       mappings.
255
256       semanage permissive can also be used to manipulate  whether  or  not  a
257       process type is permissive.
258
259       semanage  module can also be used to enable/disable/install/remove pol‐
260       icy modules.
261
262       semanage boolean can also be used to manipulate the booleans
263
264
265       system-config-selinux is a GUI tool available to customize SELinux pol‐
266       icy settings.
267
268

AUTHOR

270       This manual page was auto-generated using sepolicy manpage .
271
272

SEE ALSO

274       selinux(8),  local_login(8),  semanage(8), restorecon(8), chcon(1), se‐
275       policy(8), setsebool(8)
276
277
278
279local_login                        22-05-27             local_login_selinux(8)
Impressum