diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index 1e27e10f55..89bae7e8f6 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -568,7 +568,11 @@ SELinuxRestoreSecurityFileLabel(const char *path) } if (getContext(newpath, buf.st_mode, &fcon) < 0) { + /* Any user created path likely does not have a default label, + * which makes this an expected non error + */ VIR_WARN("cannot lookup default selinux label for %s", newpath); + rc = 0; } else { rc = SELinuxSetFilecon(newpath, fcon); }