Skip to content

Commit ff26015

Browse files
committed
Allow containers to manage fuse sockets and pipes
Signed-off-by: Daniel J Walsh <[email protected]>
1 parent 0f3e098 commit ff26015

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

container.te

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(container, 2.133.0)
1+
policy_module(container, 2.134.0)
22
gen_require(`
33
class passwd rootok;
44
')
@@ -468,6 +468,7 @@ tunable_policy(`container_use_cephfs',`
468468
exec_files_pattern(container_domain, cephfs_t, cephfs_t)
469469
')
470470

471+
fs_manage_fusefs_named_sockets(container_runtime_domain)
471472
fs_manage_fusefs_dirs(container_runtime_domain)
472473
fs_manage_fusefs_files(container_runtime_domain)
473474
fs_manage_fusefs_symlinks(container_runtime_domain)
@@ -720,6 +721,8 @@ dev_dontaudit_mounton_sysfs(container_domain)
720721
dev_dontaudit_mounton_sysfs(container_domain)
721722

722723
dontaudit container_domain container_runtime_tmpfs_t:dir read;
724+
allow container_domain container_runtime_tmpfs_t:dir mounton;
725+
723726
dev_getattr_mtrr_dev(container_domain)
724727
dev_list_sysfs(container_domain)
725728

@@ -877,6 +880,8 @@ tunable_policy(`container_manage_cgroup',`
877880
fs_manage_cgroup_files(container_domain)
878881
')
879882

883+
fs_manage_fusefs_named_sockets(container_domain)
884+
fs_manage_fusefs_named_pipes(container_domain)
880885
fs_manage_fusefs_dirs(container_domain)
881886
fs_manage_fusefs_files(container_domain)
882887
fs_manage_fusefs_symlinks(container_domain)
@@ -1139,7 +1144,6 @@ fs_unmount_cgroup(container_engine_t)
11391144
fs_manage_cgroup_dirs(container_engine_t)
11401145
fs_manage_cgroup_files(container_engine_t)
11411146

1142-
allow container_engine_t container_runtime_tmpfs_t:dir mounton;
11431147
allow container_engine_t proc_t:file mounton;
11441148
allow container_engine_t sysctl_t:file mounton;
11451149
allow container_engine_t sysfs_t:filesystem remount;

0 commit comments

Comments
 (0)