From: Daniel P. Berrange Date: Tue, 21 Aug 2012 10:36:14 +0000 (+0100) Subject: Fix regression generating image context X-Git-Tag: v0.10.0-rc1~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d9df4fca0b92c2d943ed8ff70fe9c1f054c3b6e;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index eea8fbdc63..71fee46f9b 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -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) {