Skip to content

Commit a43ee1d

Browse files
Allow building rpm-ostree images in containers ran by a confined users
1 parent 65099a2 commit a43ee1d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

container.te

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,3 +1641,10 @@ gen_require(`
16411641
roleattribute sysadm_r install_roles;
16421642
allow sysadm_t install_t:process transition;
16431643
type_transition sysadm_t install_exec_t:process install_t;
1644+
1645+
# Needed to be able to build an rpm-ostree/bootc image, inside of a container
1646+
# ran by a confined user.
1647+
allow container_t container_ro_file_t:dir watch;
1648+
allow container_t devpts_t:filesystem mount;
1649+
allow container_t proc_t:filesystem mount;
1650+
allow container_t tmpfs_t:filesystem remount;

0 commit comments

Comments
 (0)