2011-12-02 10:59:35 +00:00
|
|
|
.TH "seusers" "5" "28-Nov-2011" "Security Enhanced Linux" "SELinux configuration"
|
|
|
|
.SH "NAME"
|
2012-11-13 20:15:34 +00:00
|
|
|
seusers \- The SELinux GNU/Linux user to SELinux user mapping configuration file
|
|
|
|
.
|
2011-12-02 10:59:35 +00:00
|
|
|
.SH "DESCRIPTION"
|
|
|
|
The
|
|
|
|
.I seusers
|
|
|
|
file contains a list GNU/Linux user to SELinux user mapping for use by SELinux-aware login applications such as \fBPAM\fR(8).
|
|
|
|
.sp
|
|
|
|
.BR selinux_usersconf_path "(3) "
|
|
|
|
will return the active policy path to this file. The default SELinux users mapping file is located at:
|
|
|
|
.RS
|
|
|
|
.I /etc/selinux/{SELINUXTYPE}/seusers
|
|
|
|
.RE
|
|
|
|
.sp
|
|
|
|
Where \fI{SELINUXTYPE}\fR is the entry from the selinux configuration file \fIconfig\fR (see \fBselinux_config\fR(5)).
|
|
|
|
.sp
|
|
|
|
.BR getseuserbyname "(3) reads this file to map a GNU/Linux user or group to an SELinux user. "
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2011-12-02 10:59:35 +00:00
|
|
|
.SH "FILE FORMAT"
|
|
|
|
Each line of the
|
|
|
|
.I seusers
|
|
|
|
configuration file consists of the following:
|
|
|
|
.sp
|
|
|
|
.RS
|
|
|
|
\fR[\fB%\fIgroup_id\fR]|[\fIuser_id\fR]\fB:\fIseuser_id\fR[\fB:\fIrange\fR]
|
|
|
|
.RE
|
|
|
|
.sp
|
|
|
|
Where:
|
|
|
|
.RS
|
|
|
|
\fIgroup_id\fR|\fIuser_id
|
|
|
|
.RS
|
|
|
|
\fRThe GNU/Linux user id, or if preceded by the percentage (\fB%\fR) symbol, then a GNU/Linux group id.
|
|
|
|
.br
|
|
|
|
An optional entry set to \fB__default__\fR can be provided as a fall back if required.
|
|
|
|
.RE
|
|
|
|
.I seuser_id
|
|
|
|
.RS
|
|
|
|
The SELinux user identity.
|
|
|
|
.RE
|
|
|
|
.I range
|
|
|
|
.RS
|
|
|
|
The optional level or range for an MLS/MCS policy.
|
|
|
|
.RE
|
|
|
|
.RE
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2011-12-02 10:59:35 +00:00
|
|
|
.SH "EXAMPLE"
|
|
|
|
# ./seusers
|
|
|
|
.br
|
|
|
|
system_u:system_u:s0\-s15:c0.c255
|
|
|
|
.br
|
2012-11-13 20:15:34 +00:00
|
|
|
root:root:s0\-s15:c0.c255
|
2011-12-02 10:59:35 +00:00
|
|
|
.br
|
|
|
|
fred:user_u:s0
|
|
|
|
.br
|
|
|
|
__default__:user_u:s0
|
|
|
|
.br
|
|
|
|
%user_group:user_u:s0
|
2012-11-13 20:15:34 +00:00
|
|
|
.
|
2011-12-02 10:59:35 +00:00
|
|
|
.SH "SEE ALSO"
|
2012-11-13 20:15:34 +00:00
|
|
|
.ad l
|
|
|
|
.nh
|
2011-12-02 10:59:35 +00:00
|
|
|
.BR selinux "(8), " PAM "(8), " selinux_usersconf_path "(3), " getseuserbyname "(3), " selinux_config "(5) "
|