From 2d9df4fca0b92c2d943ed8ff70fe9c1f054c3b6e Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 21 Aug 2012 11:36:14 +0100 Subject: [PATCH] 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 --- src/security/security_selinux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- GitLab