Skip to content

Commit e27600f

Browse files
Allow "bootc status" to work for SELinux confined users
Signed-off-by: Max Chernoff <[email protected]>
1 parent 729136a commit e27600f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

container.te

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,3 +1631,13 @@ tunable_policy(`deny_ptrace',`',`
16311631
# netavark needs to write to /run/sysctl.d and needs the right label for systemd to read it.
16321632
# https://issues.redhat.com/browse/RHEL-91380
16331633
files_pid_filetrans(container_runtime_t, system_conf_t, dir, "sysctl.d")
1634+
1635+
# Needed for "bootc status" to work (via sudo) as a confined user.
1636+
gen_require(`
1637+
attribute_role install_roles;
1638+
type sysadm_t;
1639+
')
1640+
1641+
roleattribute sysadm_r install_roles;
1642+
allow sysadm_t install_t:process transition;
1643+
type_transition sysadm_t install_exec_t:process install_t;

0 commit comments

Comments
 (0)