Skip to content

Commit

Permalink
userdomain: allow grant mac_admin capability to security admin
Browse files Browse the repository at this point in the history
cap_mac_admin is required to operate some LSM modules, such as
selinux, apparmor, smack, etc. It is necessary to allow the security
administrator role to grant this capability.

Signed-off-by: Tianjia Zhang <[email protected]>
  • Loading branch information
uudiin committed Jan 16, 2025
1 parent 94d9ea4 commit 4e7352b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/system/userdomain.if
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,7 @@ template(`userdom_admin_user_template',`
#
interface(`userdom_security_admin_template',`
allow $1 self:capability { dac_override dac_read_search };
allow $1 self:capability2 mac_admin;

corecmd_exec_shell($1)

Expand Down

0 comments on commit 4e7352b

Please sign in to comment.