Skip to content

Commit aebd24d

Browse files
committed
Allow containers to be socket activated
Signed-off-by: Daniel J Walsh <[email protected]>
1 parent 3779162 commit aebd24d

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.166.0)
1+
policy_module(container, 2.167.0)
22

33
gen_require(`
44
class passwd rootok;
@@ -600,6 +600,7 @@ optional_policy(`
600600
allow container_runtime_t unconfined_t:process transition;
601601
allow unconfined_domain_type { container_var_lib_t container_ro_file_t }:file entrypoint;
602602
fs_fusefs_entrypoint(unconfined_domain_type)
603+
allow container_domain unconfined_t:unix_stream_socket { accept ioctl read getattr lock write append getopt };
603604
')
604605

605606
optional_policy(`
@@ -1160,6 +1161,7 @@ gen_require(`
11601161
')
11611162
dontaudit container_domain device_node:chr_file setattr;
11621163
dontaudit container_domain sysctl_type:file write;
1164+
allow container_domain init_t:unix_stream_socket { accept ioctl read getattr lock write append getopt };
11631165

11641166
allow container_t proc_t:filesystem remount;
11651167

0 commit comments

Comments
 (0)