mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix regression generating image context
The code to refactor sec label handling accidentally changed the SELinux driver to use the 'domain_context' when generating the image label instead of the 'file_context' Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
0c0a8c9f35
commit
2d9df4fca0
@ -450,7 +450,7 @@ virSecuritySELinuxGenSecurityLabel(virSecurityManagerPtr mgr,
|
||||
}
|
||||
|
||||
if (!seclabel->norelabel) {
|
||||
seclabel->imagelabel = virSecuritySELinuxGenNewContext(data->domain_context,
|
||||
seclabel->imagelabel = virSecuritySELinuxGenNewContext(data->file_context,
|
||||
mcs,
|
||||
true);
|
||||
if (!seclabel->imagelabel) {
|
||||
|
Loading…
Reference in New Issue
Block a user