summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2004-10-18 13:06:41 +0000
committerColin Walters <walters@verbum.org>2004-10-18 13:06:41 +0000
commitf79e96fc08734e92804f649b8cfb4bcead1f81a7 (patch)
tree122039d3876e76e115bbeb780b2d435f83e45a9f /bus
parent736fa825e15c8d72eac85080e6cdf028c2f8df43 (diff)
2004-10-18 Colin Walters <walters@verbum.org>
* bus/selinux.c (bus_selinux_enabled): Handle --disable-selinux case.
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 */
}
/**