diff options
| author | Colin Walters <walters@verbum.org> | 2004-10-18 13:06:41 +0000 | 
|---|---|---|
| committer | Colin Walters <walters@verbum.org> | 2004-10-18 13:06:41 +0000 | 
| commit | f79e96fc08734e92804f649b8cfb4bcead1f81a7 (patch) | |
| tree | 122039d3876e76e115bbeb780b2d435f83e45a9f | |
| parent | 736fa825e15c8d72eac85080e6cdf028c2f8df43 (diff) | |
2004-10-18  Colin Walters  <walters@verbum.org>
	* bus/selinux.c (bus_selinux_enabled): Handle
	--disable-selinux case.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | bus/selinux.c | 4 | 
2 files changed, 9 insertions, 0 deletions
| @@ -1,5 +1,10 @@  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.  	* bus/selinux.c (bus_selinux_enabled): Implement it. 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 */  }  /** | 
