Debian Codegraph @

libselinux/man/man5/seusers.5

raw
1 .TH "seusers" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
2 .SH "NAME"
3 seusers \- The SELinux GNU/Linux user to SELinux user mapping configuration file
4 .
5 .SH "DESCRIPTION"
6 The
7 .I seusers
8 file contains a list GNU/Linux user to SELinux user mapping for use by SELinux-aware login applications such as \fBPAM\fR(8).
9 .sp
10 .BR selinux_usersconf_path "(3) "
11 will return the active policy path to this file. The default SELinux users mapping file is located at:
12 .RS
13 .I /etc/selinux/{SELINUXTYPE}/seusers
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 .sp
18 .BR getseuserbyname "(3) reads this file to map a GNU/Linux user or group to an SELinux user. "
19 .
20 .SH "FILE FORMAT"
21 Each line of the
22 .I seusers
23 configuration file consists of the following:
24 .sp
25 .RS
26 \fR[\fB%\fIgroup_id\fR]|[\fIuser_id\fR]\fB:\fIseuser_id\fR[\fB:\fIrange\fR]
27 .RE
28 .sp
29 Where:
30 .RS
31 \fIgroup_id\fR|\fIuser_id
32 .RS
33 \fRThe GNU/Linux user id, or if preceded by the percentage (\fB%\fR) symbol, then a GNU/Linux group id.
34 .br
35 An optional entry set to \fB__default__\fR can be provided as a fall back if required.
36 .RE
37 .I seuser_id
38 .RS
39 The SELinux user identity.
40 .RE
41 .I range
42 .RS
43 The optional level or range for an MLS/MCS policy.
44 .RE
45 .RE
46 .
47 .SH "EXAMPLE"
48 # ./seusers
49 .br
50 system_u:system_u:s0\-s15:c0.c255
51 .br
52 root:root:s0\-s15:c0.c255
53 .br
54 fred:user_u:s0
55 .br
56 __default__:user_u:s0
57 .br
58 %user_group:user_u:s0
59 .
60 .SH "SEE ALSO"
61 .ad l
62 .nh
63 .BR selinux "(8), " PAM "(8), " selinux_usersconf_path "(3), " getseuserbyname "(3), " selinux_config "(5) "