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
7       local_login 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
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

BOOLEANS

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 users to resolve user passwd entries directly from
61       ldap  rather  then  using  a  sssd server, you must turn on the authlo‐
62       gin_nsswitch_use_ldap boolean. Disabled by default.
63
64       setsebool -P authlogin_nsswitch_use_ldap 1
65
66
67
68       If you want to allow all domains to execute in fips_mode, you must turn
69       on the fips_mode boolean. Enabled by default.
70
71       setsebool -P fips_mode 1
72
73
74
75       If  you  want  to allow confined applications to run with kerberos, you
76       must turn on the kerberos_enabled boolean. Enabled by default.
77
78       setsebool -P kerberos_enabled 1
79
80
81
82       If you want to allow logging in and using the system from /dev/console,
83       you must turn on the login_console_enabled boolean. Enabled by default.
84
85       setsebool -P login_console_enabled 1
86
87
88
89       If  you  want  to  allow  system  to run with NIS, you must turn on the
90       nis_enabled boolean. Disabled by default.
91
92       setsebool -P nis_enabled 1
93
94
95
96       If you want to allow confined applications to use nscd  shared  memory,
97       you must turn on the nscd_use_shm boolean. Disabled by default.
98
99       setsebool -P nscd_use_shm 1
100
101
102
103       If you want to enable polyinstantiated directory support, you must turn
104       on the polyinstantiation_enabled boolean. Disabled by default.
105
106       setsebool -P polyinstantiation_enabled 1
107
108
109

MANAGED FILES

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

FILE CONTEXTS

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

COMMANDS

271       semanage fcontext can also be used to manipulate default  file  context
272       mappings.
273
274       semanage  permissive  can  also  be used to manipulate whether or not a
275       process type is permissive.
276
277       semanage module can also be used to enable/disable/install/remove  pol‐
278       icy modules.
279
280       semanage boolean can also be used to manipulate the booleans
281
282
283       system-config-selinux is a GUI tool available to customize SELinux pol‐
284       icy settings.
285
286

AUTHOR

288       This manual page was auto-generated using sepolicy manpage .
289
290

SEE ALSO

292       selinux(8),  local_login(8),  semanage(8),   restorecon(8),   chcon(1),
293       sepolicy(8), setsebool(8)
294
295
296
297local_login                        19-05-30             local_login_selinux(8)
Impressum