|
Chris PeBenito |
ab58ad |
##################################
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# User configuration.
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# This file defines each user recognized by the system security policy.
|
|
Chris PeBenito |
ab58ad |
# Only the user identities defined in this file may be used as the
|
|
Chris PeBenito |
ab58ad |
# user attribute in a security context.
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# Each user has a set of roles that may be entered by processes
|
|
Chris PeBenito |
ab58ad |
# with the users identity. The syntax of a user declaration is:
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# user username roles role_set [ ranges MLS_range_set ] level s0 range s0;
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# The MLS range set should only be specified if MLS was enabled
|
|
Chris PeBenito |
ab58ad |
# for the module and checkpolicy.
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# system_u is the user identity for system processes and objects.
|
|
Chris PeBenito |
ab58ad |
# There should be no corresponding Unix user identity for system_u,
|
|
Chris PeBenito |
ab58ad |
# and a user process should never be assigned the system_u user
|
|
Chris PeBenito |
ab58ad |
# identity.
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
user system_u roles system_r level s0 range s0 - s0:c0.c255;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
# user_u is a generic user identity for Linux users who have no
|
|
Chris PeBenito |
ab58ad |
# SELinux user identity defined. Authorized for all roles in the
|
|
Chris PeBenito |
ab58ad |
# relaxed policy. sysadm_r is retained for compatibility, but could
|
|
Chris PeBenito |
ab58ad |
# be dropped as long as userspace has no hardcoded dependency on it.
|
|
Chris PeBenito |
ab58ad |
# user_u must be retained due to present userspace hardcoded dependency.
|
|
Chris PeBenito |
ab58ad |
#
|
|
Chris PeBenito |
ab58ad |
user user_u roles { user_r sysadm_r system_r } level s0 range s0 - s0:c0.c255;
|
|
Chris PeBenito |
ab58ad |
|
|
Chris PeBenito |
ab58ad |
# root is retained as a separate user identity simply as a compatibility
|
|
Chris PeBenito |
ab58ad |
# measure with the "strict" policy. It could be dropped and mapped to user_u
|
|
Chris PeBenito |
ab58ad |
# but this allows existing file contexts that have "root" as the user identity
|
|
Chris PeBenito |
ab58ad |
# to remain valid.
|
|
Chris PeBenito |
ab58ad |
user root roles { user_r sysadm_r system_r } level s0 range s0 - s0:c0.c255;
|