diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index e4ef1e256c..d267d5acd0 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -1743,7 +1743,7 @@ virSecuritySELinuxSetSecurityChardevLabel(virDomainDefPtr def, case VIR_DOMAIN_CHR_TYPE_UNIX: if (!dev_source->data.nix.listen) { - if (virSecuritySELinuxSetFilecon(dev_source->data.file.path, + if (virSecuritySELinuxSetFilecon(dev_source->data.nix.path, imagelabel) < 0) goto done; }