Skip to content

Commit 016f1b3

Browse files
committed
Allow containers to watch sysfs_t directories
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2177273 Signed-off-by: Daniel J Walsh <[email protected]>
1 parent 16d4c66 commit 016f1b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

container.te

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(container, 2.203.0)
1+
policy_module(container, 2.204.0)
22

33
gen_require(`
44
class passwd rootok;
@@ -865,6 +865,8 @@ allow container_domain container_runtime_tmpfs_t:dir mounton;
865865

866866
dev_getattr_mtrr_dev(container_domain)
867867
dev_list_sysfs(container_domain)
868+
allow container_domain sysfs_t:dir watch;
869+
868870
dev_rw_kvm(container_domain)
869871
dev_rwx_zero(container_domain)
870872

0 commit comments

Comments
 (0)