b32d59c
##################################
b32d59c
#
b32d59c
# Core User configuration.
b32d59c
#
b32d59c
b32d59c
#
b32d59c
# gen_user(username, prefix, role_set, mls_defaultlevel, mls_range, [mcs_catetories])
b32d59c
#
b32d59c
# Note: Identities without a prefix wil not be listed
b32d59c
# in the users_extra file used by genhomedircon.
b32d59c
b32d59c
#
b32d59c
# system_u is the user identity for system processes and objects.
b32d59c
# There should be no corresponding Unix user identity for system,
b32d59c
# and a user process should never be assigned the system user
b32d59c
# identity.
b32d59c
#
b32d59c
gen_user(system_u,, system_r unconfined_r, s0, s0 - mls_systemhigh, mcs_allcats)
b32d59c
b32d59c
#
b32d59c
# user_u is a generic user identity for Linux users who have no
b32d59c
# SELinux user identity defined.  The modified daemons will use
b32d59c
# this user identity in the security context if there is no matching
b32d59c
# SELinux user identity for a Linux user.  If you do not want to
b32d59c
# permit any access to such users, then remove this entry.
b32d59c
#
b32d59c
gen_user(user_u, user, user_r, s0, s0)
b32d59c
gen_user(staff_u, user, staff_r system_r sysadm_r unconfined_r, s0, s0 - mls_systemhigh, mcs_allcats)
b32d59c
gen_user(sysadm_u, user, sysadm_r, s0, s0 - mls_systemhigh, mcs_allcats)
b32d59c
b32d59c
#
b32d59c
# The following users correspond to Unix identities.
b32d59c
# These identities are typically assigned as the user attribute
b32d59c
# when login starts the user shell.  Users with access to the sysadm_r
b32d59c
# role should use the staff_r role instead of the user_r role when
b32d59c
# not in the sysadm_r.
b32d59c
#
b32d59c
gen_user(root, user, unconfined_r sysadm_r staff_r system_r, s0, s0 - mls_systemhigh, mcs_allcats)