diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index f3690a4cb148d81e59987d4a06a197c06b624d96..5cdb839c13fc06de579f64b74795ede613a8c1c4 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -211,7 +211,7 @@ virSecuritySELinuxRecallLabel(const char *path, path, con) < 0) return -1; - if (!con) + if (!*con) return 1; return 0;