Skip to content

Commit

Permalink
Allow container_device_plugin_t to use the network (#325)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan authored Sep 11, 2024
1 parent ce7a50c commit cc5da8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion container.te
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
policy_module(container, 2.232.1)
policy_module(container, 2.233.0)

gen_require(`
class passwd rootok;
Expand Down Expand Up @@ -1516,6 +1516,7 @@ allow container_device_t device_node:chr_file rw_chr_file_perms;
# Standard container which needs to be allowed to use any device and
# communicate with kubelet
container_domain_template(container_device_plugin, container)
typeattribute container_device_plugin_t container_net_domain;
allow container_device_plugin_t device_node:chr_file rw_chr_file_perms;
dev_rw_sysfs(container_device_plugin_t)
kernel_read_debugfs(container_device_plugin_t)
Expand Down

0 comments on commit cc5da8a

Please sign in to comment.