summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
Diffstat (limited to 'bus')
-rw-r--r--bus/selinux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bus/selinux.c b/bus/selinux.c
index 0946caf9..de68da33 100644
--- a/bus/selinux.c
+++ b/bus/selinux.c
@@ -197,7 +197,11 @@ avc_free_lock (void *lock)
dbus_bool_t
bus_selinux_enabled (void)
{
+#ifdef HAVE_SELINUX
return selinux_enabled;
+#else
+ return FALSE;
+#endif /* HAVE_SELINUX */
}
/**