Skip to content

Commit

Permalink
KVM Container need to use tunnel sockets created by runtime.
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Nov 3, 2020
1 parent 0ef4703 commit 5d3c461
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.150.0)
policy_module(container, 2.151.0)
gen_require(`
class passwd rootok;
')
Expand Down Expand Up @@ -1148,6 +1148,8 @@ allow container_kvm_t container_runtime_t:unix_stream_socket rw_stream_socket_pe

container_stream_connect(container_kvm_t)

allow container_kvm_t container_runtime_t:tun_socket attach_queue;

dev_rw_inherited_vhost(container_kvm_t)
dev_rw_vfio_dev(container_kvm_t)

Expand Down

0 comments on commit 5d3c461

Please sign in to comment.