mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 16:15:23 +00:00
4d4f977ab5
Add fake implementations of: - is_selinux_enabled - security_disable - selinux_virtual_domain_context_path - selinux_virtual_image_context_path - selinux_lxc_contexts_path - selabel_open - selabel_close - selabel_lookup_raw The selabel_* functions back onto the real implementations if SELinux is enabled on the test system, otherwise we just implement a fake selabel handle which errors out on all labelling lookups. With these changes in place, securityselinuxtest and securityselinuxlabeltest don't need to skip all tests if SELinux isn't available; they can exercise much of the security manager code. Signed-off-by: Michael Chapman <mike@very.puzzling.org>
6 lines
271 B
Plaintext
6 lines
271 B
Plaintext
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_lxc_process = "system_u:system_r:svirt_lxc_net_t:s0"
|