Chris PeBenito 134191
Chris PeBenito 134191
##################################
Chris PeBenito 134191
#
Chris PeBenito 134191
# Core User configuration.
Chris PeBenito 134191
#
Chris PeBenito 134191
Chris PeBenito 946545
#
Chris PeBenito 90b331
# gen_user(username, prefix, role_set, mls_defaultlevel, mls_range, [mcs_catetories])
Chris PeBenito 946545
#
Chris PeBenito 90b331
# Note: Identities without a prefix wil not be listed
Chris PeBenito 90b331
# in the users_extra file used by genhomedircon.
Chris PeBenito 2fc84f
Chris PeBenito 2fc84f
#
Chris PeBenito bdb2fa
# system_u is the user identity for system processes and objects.
Chris PeBenito bdb2fa
# There should be no corresponding Unix user identity for system,
Chris PeBenito bdb2fa
# and a user process should never be assigned the system user
Chris PeBenito bdb2fa
# identity.
Chris PeBenito bdb2fa
#
Chris PeBenito 90b331
gen_user(system_u,, system_r, s0, s0 - s15:c0.c255, c0.c255)
Chris PeBenito bdb2fa
Chris PeBenito bdb2fa
#
Chris PeBenito 2fc84f
# user_u is a generic user identity for Linux users who have no
Chris PeBenito 2fc84f
# SELinux user identity defined.  The modified daemons will use
Chris PeBenito 2fc84f
# this user identity in the security context if there is no matching
Chris PeBenito 2fc84f
# SELinux user identity for a Linux user.  If you do not want to
Chris PeBenito 2fc84f
# permit any access to such users, then remove this entry.
Chris PeBenito 2fc84f
#
Chris PeBenito c98340
ifdef(`targeted_policy',`
Chris PeBenito 90b331
gen_user(user_u, user, user_r sysadm_r system_r, s0, s0 - s15:c0.c255, c0.c255)
Chris PeBenito c98340
',`
Chris PeBenito 90b331
gen_user(user_u, user, user_r, s0, s0)
Chris PeBenito 2dbd38
gen_user(staff_u, staff, staff_r sysadm_r ifdef(`enable_mls',`secadm_r auditadm_r'), s0, s0 - s15:c0.c255, c0.c255)
Chris PeBenito 90b331
gen_user(sysadm_u, sysadm, sysadm_r, s0, s0 - s15:c0.c255, c0.c255)
Chris PeBenito c98340
')
Chris PeBenito 2fc84f
Chris PeBenito 2fc84f
#
Chris PeBenito 2fc84f
# The following users correspond to Unix identities.
Chris PeBenito 2fc84f
# These identities are typically assigned as the user attribute
Chris PeBenito 2fc84f
# when login starts the user shell.  Users with access to the sysadm_r
Chris PeBenito 2fc84f
# role should use the staff_r role instead of the user_r role when
Chris PeBenito 2fc84f
# not in the sysadm_r.
Chris PeBenito 2fc84f
#
Chris PeBenito c98340
ifdef(`targeted_policy',`
Chris PeBenito 90b331
	gen_user(root, user, user_r sysadm_r system_r, s0, s0 - s15:c0.c255, c0.c255)
Chris PeBenito c98340
',`
Chris PeBenito e5f806
	ifdef(`direct_sysadm_daemon',`
Chris PeBenito 2dbd38
		gen_user(root, sysadm, sysadm_r staff_r ifdef(`enable_mls',`secadm_r auditadm_r') system_r, s0, s0 - s15:c0.c255, c0.c255)
Chris PeBenito 5a3895
	',`
Chris PeBenito 2dbd38
		gen_user(root, sysadm, sysadm_r staff_r ifdef(`enable_mls',`secadm_r auditadm_r'), s0, s0 - s15:c0.c255, c0.c255)
Chris PeBenito e5f806
	')
Chris PeBenito c98340
')