Debian Codegraph @

libselinux/man/man5/local.users.5

raw
1 .TH "local.users" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
2 .SH "NAME"
3 local.users \- The SELinux local users configuration file
4 .
5 .SH "DESCRIPTION"
6 The file contains local user definitions in the form of policy language user statements and is only found on older SELinux systems as it has been deprecated and replaced by the \fBsemange\fR(8) services.
7 .sp
8 This file is only read by \fBselinux_mkload_policy\fR(3) when \fBSETLOCALDEFS\fR in the SELinux \fIconfig\fR file (see \fBselinux_config\fR(5)) is set to \fI1\fR.
9 .sp
10 .BR selinux_users_path "(3) "
11 will return the active policy path to the directory where this file is located. The default local users file is:
12 .RS
13 .I /etc/selinux/{SELINUXTYPE}/contexts/users/local.users
14 .RE
15 .sp
16 Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
17 .
18 .SH "FILE FORMAT"
19 The file consists of one or more entries terminated with '\fB;\fR', each on a separate line as follows:
20 .RS
21 \fBuser \fIseuser_id \fBroles \fIrole_id\fR [[\fBlevel \fIlevel\fR] [\fBrange \fIrange\fR]]\fB;\fR
22 .RE
23 .sp
24 Where:
25 .RS
26 .B user
27 .RS
28 The user keyword.
29 .RE
30 .I seuser_id
31 .RS
32 The SELinux user identifier.
33 .RE
34 .B roles
35 .RS
36 The roles keyword.
37 .RE
38 .I role_id
39 .RS
40 One or more previously declared role identifiers. Multiple role identifiers consist of a space separated list enclosed in braces '{}'.
41 .RE
42 .B level
43 .RS
44 If MLS/MCS is configured, the level keyword.
45 .RE
46 .I level
47 .RS
48 The users default security level. Note that only the sensitivity component of the level (e.g. s0) is required.
49 .RE
50 .B range
51 .RS
52 If MLS/MCS is configured, the range keyword.
53 .RE
54 .I range
55 .RS
56 The current and clearance levels that the user can run. These are separated by a hyphen '\fB-\fR' as shown in the \fBEXAMPLE\fR section.
57 .RE
58 .RE
59 .
60 .SH "EXAMPLE"
61 # ./users/local.users
62 .br
63 user test_u roles staff_r level s0 range s0 \- s15:c0.c1023;
64 .
65 .SH "SEE ALSO"
66 .ad l
67 .nh
68 .BR selinux "(8), " semanage "(8), " selinux_users_path "(3), " selinux_config "(5), " selinux_mkload_policy "(3) "