493ca67e54
Make it consistent with sysadm_r:sysadm_t. If you build targeted policy then consider direct_initrc=y If you build with direct_initrc=n then both unconfined_r:unconfined_t, as well as sysadm_r:sysadm_t rely on run_init for running services on behalf of the system. Signed-off-by: Dominick Grift <dominick.grift@gmail.com>
50 lines
1.9 KiB
Plaintext
50 lines
1.9 KiB
Plaintext
##################################
|
|
#
|
|
# Core User configuration.
|
|
#
|
|
|
|
#
|
|
# gen_user(username, prefix, role_set, mls_defaultlevel, mls_range, [mcs_catetories])
|
|
#
|
|
# Note: Identities without a prefix will not be listed
|
|
# in the users_extra file used by genhomedircon.
|
|
|
|
#
|
|
# system_u is the user identity for system processes and objects.
|
|
# There should be no corresponding Unix user identity for system,
|
|
# and a user process should never be assigned the system user
|
|
# identity.
|
|
#
|
|
gen_user(system_u,, system_r, s0, s0 - mls_systemhigh, mcs_allcats)
|
|
|
|
#
|
|
# user_u is a generic user identity for Linux users who have no
|
|
# SELinux user identity defined. The modified daemons will use
|
|
# this user identity in the security context if there is no matching
|
|
# SELinux user identity for a Linux user. If you do not want to
|
|
# permit any access to such users, then remove this entry.
|
|
#
|
|
gen_user(user_u, user, user_r, s0, s0)
|
|
gen_user(staff_u, staff, staff_r sysadm_r ifdef(`enable_mls',`secadm_r auditadm_r'), s0, s0 - mls_systemhigh, mcs_allcats)
|
|
gen_user(sysadm_u, sysadm, sysadm_r, s0, s0 - mls_systemhigh, mcs_allcats)
|
|
|
|
# Until order dependence is fixed for users:
|
|
ifdef(`direct_sysadm_daemon',`
|
|
gen_user(unconfined_u, unconfined, unconfined_r system_r, s0, s0 - mls_systemhigh, mcs_allcats)
|
|
',`
|
|
gen_user(unconfined_u, unconfined, unconfined_r, s0, s0 - mls_systemhigh, mcs_allcats)
|
|
')
|
|
|
|
#
|
|
# The following users correspond to Unix identities.
|
|
# These identities are typically assigned as the user attribute
|
|
# when login starts the user shell. Users with access to the sysadm_r
|
|
# role should use the staff_r role instead of the user_r role when
|
|
# not in the sysadm_r.
|
|
#
|
|
ifdef(`direct_sysadm_daemon',`
|
|
gen_user(root, sysadm, sysadm_r staff_r ifdef(`enable_mls',`secadm_r auditadm_r') system_r, s0, s0 - mls_systemhigh, mcs_allcats)
|
|
',`
|
|
gen_user(root, sysadm, sysadm_r staff_r ifdef(`enable_mls',`secadm_r auditadm_r'), s0, s0 - mls_systemhigh, mcs_allcats)
|
|
')
|