Skip to content

Commit cc5da8a

Browse files
authored
Allow container_device_plugin_t to use the network (#325)
Signed-off-by: Daniel J Walsh <[email protected]>
1 parent ce7a50c commit cc5da8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

container.te

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(container, 2.232.1)
1+
policy_module(container, 2.233.0)
22

33
gen_require(`
44
class passwd rootok;
@@ -1516,6 +1516,7 @@ allow container_device_t device_node:chr_file rw_chr_file_perms;
15161516
# Standard container which needs to be allowed to use any device and
15171517
# communicate with kubelet
15181518
container_domain_template(container_device_plugin, container)
1519+
typeattribute container_device_plugin_t container_net_domain;
15191520
allow container_device_plugin_t device_node:chr_file rw_chr_file_perms;
15201521
dev_rw_sysfs(container_device_plugin_t)
15211522
kernel_read_debugfs(container_device_plugin_t)

0 commit comments

Comments
 (0)