Skip to content

Commit

Permalink
Allow containers to be socket activated
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Aug 26, 2021
1 parent 3779162 commit aebd24d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.166.0)
policy_module(container, 2.167.0)

gen_require(`
class passwd rootok;
Expand Down Expand Up @@ -600,6 +600,7 @@ optional_policy(`
allow container_runtime_t unconfined_t:process transition;
allow unconfined_domain_type { container_var_lib_t container_ro_file_t }:file entrypoint;
fs_fusefs_entrypoint(unconfined_domain_type)
allow container_domain unconfined_t:unix_stream_socket { accept ioctl read getattr lock write append getopt };
')

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

allow container_t proc_t:filesystem remount;

Expand Down

0 comments on commit aebd24d

Please sign in to comment.