Skip to content

Commit e80cdf3

Browse files
committed
Additional rules required for kvm containers
Since container_kvm_t can mount /proc, allow it to unmount /proc. container_t is allowed to write to syslog, so should container_kvm_t. Allow dgram packets to be sent to the kernel, but virtiofsd. Signed-off-by: Daniel J Walsh <[email protected]>
1 parent 9b3b66f commit e80cdf3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

container.te

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
policy_module(container, 2.148.0)
1+
policy_module(container, 2.149.0)
22
gen_require(`
33
class passwd rootok;
44
')
@@ -1158,9 +1158,12 @@ corecmd_bin_entry_type(container_kvm_t)
11581158
# virtiofs causes these AVC messages.
11591159
kernel_mount_proc(container_kvm_t)
11601160
kernel_mounton_proc(container_kvm_t)
1161+
kernel_unmount_proc(container_kvm_t)
1162+
kernel_dgram_send(container_kvm_t)
11611163
files_mounton_rootfs(container_kvm_t)
11621164

11631165
auth_read_passwd(container_kvm_t)
1166+
logging_send_syslog_msg(container_kvm_t)
11641167

11651168
optional_policy(`
11661169
qemu_entry_type(container_kvm_t)

0 commit comments

Comments
 (0)