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