summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdm/libdm-common.c')
-rw-r--r--libdm/libdm-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c
index cca29a7f..d3f0d2a0 100644
--- a/libdm/libdm-common.c
+++ b/libdm/libdm-common.c
@@ -401,7 +401,7 @@ static int _selabel_lookup(const char *path, mode_t mode,
log_error("selabel_lookup failed: %s", strerror(errno));
return 0;
}
-#else
+#elif HAVE_SELINUX
if (matchpathcon(path, mode, scontext)) {
log_error("matchpathcon failed: %s", strerror(errno));
return 0;