blob: 385a32629c3f90b676ed4a62b13a66f1e828b845 [file] [log] [blame]
Richard Haines426d6242011-12-02 10:59:35 +00001.TH "service_seusers" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
Richard Haines426d6242011-12-02 10:59:35 +00002.SH "NAME"
Guillem Jover6ef13ee2012-11-13 21:15:34 +01003service_seusers \- The SELinux GNU/Linux user and service to SELinux user mapping configuration files
4.
Richard Haines426d6242011-12-02 10:59:35 +00005.SH "DESCRIPTION"
6These are optional files that allow services to define an SELinux user when authenticating via SELinux-aware login applications such as
7.BR PAM "(8). "
8.sp
9There is one file for each GNU/Linux user name that will be required to run a service with a specific SELinux user name.
10.sp
11The path for each configuration file is formed by the path returned by
12.BR selinux_policy_root "(3) with "
13.IR /logins/username
14appended (where \fIusername\fR is a file representing the GNU/Linux user name). The default services directory is located at:
15.RS
16.I /etc/selinux/{SELINUXTYPE}/logins
17.RE
18.sp
19Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
20.sp
21.BR getseuser "(3) reads this file to map services to an SELinux user. "
Guillem Jover6ef13ee2012-11-13 21:15:34 +010022.
Richard Haines426d6242011-12-02 10:59:35 +000023.SH "FILE FORMAT"
24Each line within the \fIusername\fR file is formatted as follows with each component separated by a colon:
25.RS
26.IB service : seuser \fR[\fB:\fIrange\fR]
27.RE
28.sp
29Where:
30.RS
31.I service
32.RS
33The service name used by the application.
34.RE
35.I seuser
36.RS
37The SELinux user name.
38.RE
39.I range
40.RS
41The range for MCS/MLS policies.
42.RE
43.RE
Guillem Jover6ef13ee2012-11-13 21:15:34 +010044.
Richard Haines426d6242011-12-02 10:59:35 +000045.SH "EXAMPLES"
Guillem Jover6ef13ee2012-11-13 21:15:34 +010046Example 1 - for the 'root' user:
Richard Haines426d6242011-12-02 10:59:35 +000047.RS
48# ./logins/root
49.br
50ipa:user_u:s0
51.br
52this_service:unconfined_u:s0
53.RE
54.sp
Guillem Jover6ef13ee2012-11-13 21:15:34 +010055Example 2 - for GNU/Linux user 'rch':
Richard Haines426d6242011-12-02 10:59:35 +000056.RS
57# ./logins/rch
58.br
59ipa:unconfined_u:s0
60.br
61that_service:unconfined_u:s0
62.RE
Guillem Jover6ef13ee2012-11-13 21:15:34 +010063.
Richard Haines426d6242011-12-02 10:59:35 +000064.SH "SEE ALSO"
Guillem Jover6ef13ee2012-11-13 21:15:34 +010065.ad l
66.nh
Richard Haines426d6242011-12-02 10:59:35 +000067.BR selinux "(8), " PAM "(8), " selinux_policy_root "(3), " getseuser "(3), " selinux_config "(5) "