]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix regression generating image context
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 21 Aug 2012 10:36:14 +0000 (11:36 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 21 Aug 2012 10:37:57 +0000 (11:37 +0100)
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>
src/security/security_selinux.c

index eea8fbdc6345cd43808f26700485793e2e4a9b33..71fee46f9ba0b20f401712c250df03c4a5a330fe 100644 (file)
@@ -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)  {