diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index 92267e8fc81a3ba8998604d2cd4b3a4044344d8e..f229b5139ac0c7f69b2486bc8d3535eca8063899 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -1138,7 +1138,7 @@ virSecuritySELinuxSetFileconHelper(const char *path, const char *tcon, VIR_INFO("Setting SELinux context on '%s' to '%s'", path, tcon); - if (setfilecon_raw(path, tcon) < 0) { + if (setfilecon_raw(path, (VIR_SELINUX_CTX_CONST char *) tcon) < 0) { int setfilecon_errno = errno; if (getfilecon_raw(path, &econ) >= 0) {