Skip to content

Commit

Permalink
Allow sysadm_t and staff_t roles to manage user systemd services BZ(1…
Browse files Browse the repository at this point in the history
…531864)
  • Loading branch information
wrabcak committed Jan 10, 2018
1 parent 7a5cfb3 commit cc4a892
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions policy/modules/roles/staff.te
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ gen_tunable(staff_use_svirt, false)
#
# Local policy
#

allow staff_t self:system all_system_perms;

corenet_ib_access_unlabeled_pkeys(staff_t)

kernel_read_ring_buffer(staff_t)
Expand Down Expand Up @@ -255,6 +258,7 @@ optional_policy(`

optional_policy(`
systemd_read_unit_files(staff_t)
systemd_config_all_services(staff_t)
systemd_exec_systemctl(staff_t)
')

Expand Down
2 changes: 2 additions & 0 deletions policy/modules/roles/sysadm.te
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ role sysadm_r;
userdom_admin_user_template(sysadm)
allow sysadm_t self:netlink_tcpdiag_socket create_netlink_socket_perms;

allow sysadm_t self:system all_system_perms;


########################################
#
Expand Down

0 comments on commit cc4a892

Please sign in to comment.