2004-10-18 Colin Walters <walters@verbum.org>

* bus/selinux.c (bus_selinux_enabled): Handle
	--disable-selinux case.
This commit is contained in:
Colin Walters 2004-10-18 13:06:41 +00:00
parent 736fa825e1
commit f79e96fc08
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2004-10-18 Colin Walters <walters@verbum.org>
* bus/selinux.c (bus_selinux_enabled): Handle
--disable-selinux case.
2004-10-18 Colin Walters <walters@verbum.org>
* bus/selinux.h: Add bus_selinux_enabled.

View file

@ -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 */
}
/**