2015-12-14 14:03:10

by Laurent Bigonville

[permalink] [raw]
Subject: [refpolicy] Missing lxc_contexts appconfig file

Hello,

lxc support in libvirt is using a lxc_contexts context file which is not
present in the refpolicy (but it's present in the Fedora policy)

The file in fedora contains the following lines (which are not working
in the refpolicy, libvirt fails starting the container):

process = "system_u:system_r:svirt_lxc_net_t:s0"
content = "system_u:object_r:virt_var_lib_t:s0"
file = "system_u:object_r:svirt_sandbox_file_t:s0"
sandbox_kvm_process = "system_u:system_r:svirt_qemu_net_t:s0"
sandbox_kvm_process = "system_u:system_r:svirt_qemu_net_t:s0"
sandbox_lxc_process = "system_u:system_r:svirt_lxc_net_t:s0"

Changing svirt_sandbox_file_t to svirt_lxc_file_t seems allow the
container to start (in permissive mode).

Also does anybody knows for what the sandbox_kvm_process and
sandbox_lxc_process lines are used for, I cannot find where this is used?

Cheers,

Laurent Bigonville