2005-06-01 15:40:37 +00:00
|
|
|
##################################
|
|
|
|
#
|
|
|
|
# Core User configuration.
|
|
|
|
#
|
|
|
|
|
2005-08-08 18:13:56 +00:00
|
|
|
#
|
2006-02-15 19:46:20 +00:00
|
|
|
# gen_user(username, prefix, role_set, mls_defaultlevel, mls_range, [mcs_catetories])
|
2005-08-08 18:13:56 +00:00
|
|
|
#
|
2009-12-13 02:39:23 +00:00
|
|
|
# Note: Identities without a prefix will not be listed
|
2006-02-15 19:46:20 +00:00
|
|
|
# in the users_extra file used by genhomedircon.
|
2005-06-01 17:40:22 +00:00
|
|
|
|
2005-12-05 20:31:54 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2022-01-07 01:51:33 +00:00
|
|
|
gen_user(system_u,, system_r, s0, s0 - mls_systemhigh)
|
2005-12-05 20:31:54 +00:00
|
|
|
|
2005-06-01 17:40:22 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2006-02-15 19:46:20 +00:00
|
|
|
gen_user(user_u, user, user_r, s0, s0)
|
2022-01-07 01:51:33 +00:00
|
|
|
gen_user(staff_u, staff, staff_r sysadm_r ifdef(`enable_mls',`secadm_r auditadm_r'), s0, s0 - mls_systemhigh)
|
|
|
|
gen_user(sysadm_u, sysadm, sysadm_r, s0, s0 - mls_systemhigh)
|
2007-10-02 16:04:50 +00:00
|
|
|
|
|
|
|
# Until order dependence is fixed for users:
|
2014-01-15 15:13:18 +00:00
|
|
|
ifdef(`direct_sysadm_daemon',`
|
2022-01-07 01:51:33 +00:00
|
|
|
gen_user(unconfined_u, unconfined, unconfined_r system_r, s0, s0 - mls_systemhigh)
|
2014-01-15 15:13:18 +00:00
|
|
|
',`
|
2022-01-07 01:51:33 +00:00
|
|
|
gen_user(unconfined_u, unconfined, unconfined_r, s0, s0 - mls_systemhigh)
|
2014-01-15 15:13:18 +00:00
|
|
|
')
|
2005-06-01 17:40:22 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2007-10-02 16:04:50 +00:00
|
|
|
ifdef(`direct_sysadm_daemon',`
|
2022-01-07 01:51:33 +00:00
|
|
|
gen_user(root, sysadm, sysadm_r staff_r ifdef(`enable_mls',`secadm_r auditadm_r') system_r, s0, s0 - mls_systemhigh)
|
2005-07-06 20:28:29 +00:00
|
|
|
',`
|
2022-01-07 01:51:33 +00:00
|
|
|
gen_user(root, sysadm, sysadm_r staff_r ifdef(`enable_mls',`secadm_r auditadm_r'), s0, s0 - mls_systemhigh)
|
2005-07-06 20:28:29 +00:00
|
|
|
')
|