Merge pull request #172 from bauen1/allow-sysadm-staff-pipes

This commit is contained in:
Chris PeBenito 2020-02-16 11:31:38 -05:00
commit e583966f92
5 changed files with 21 additions and 3 deletions

View File

@ -56,7 +56,7 @@ optional_policy(`
')
optional_policy(`
sysadm_role_change(auditadm_r)
sysadm_role_change(auditadm_r, auditadm_t)
')
optional_policy(`

View File

@ -68,7 +68,7 @@ optional_policy(`
')
optional_policy(`
sysadm_role_change(secadm_r)
sysadm_role_change(secadm_r, secadm_t)
')
optional_policy(`

View File

@ -52,7 +52,7 @@ optional_policy(`
')
optional_policy(`
sysadm_role_change(staff_r)
sysadm_role_change(staff_r, staff_t)
userdom_dontaudit_use_user_terminals(staff_t)
')

View File

@ -9,14 +9,24 @@
## Role allowed access.
## </summary>
## </param>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`sysadm_role_change',`
gen_require(`
type sysadm_t;
role sysadm_r;
')
allow $1 sysadm_r;
tunable_policy(`sysadm_allow_rw_inherited_fifo', `
allow sysadm_t $2:fifo_file rw_inherited_fifo_file_perms;
')
')
########################################

View File

@ -12,6 +12,14 @@ policy_module(sysadm, 2.15.3)
## </desc>
gen_tunable(allow_ptrace, false)
## <desc>
## <p>
## Allow sysadm to read/write to fifo files inherited from
## a domain allowed to change role.
## </p>
## </desc>
gen_tunable(sysadm_allow_rw_inherited_fifo, false)
#role sysadm_r;
userdom_admin_user_template(sysadm)