dbus/bus selinux.c,1.6,1.7

Colin Walters walters at freedesktop.org
Mon Oct 18 06:06:43 PDT 2004


Update of /cvs/dbus/dbus/bus
In directory gabe:/tmp/cvs-serv24750/bus

Modified Files:
	selinux.c 
Log Message:
2004-10-18  Colin Walters  <walters at verbum.org>

	* bus/selinux.c (bus_selinux_enabled): Handle
	--disable-selinux case.


Index: selinux.c
===================================================================
RCS file: /cvs/dbus/dbus/bus/selinux.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- selinux.c	18 Oct 2004 04:04:12 -0000	1.6
+++ selinux.c	18 Oct 2004 13:06:41 -0000	1.7
@@ -197,7 +197,11 @@
 dbus_bool_t
 bus_selinux_enabled (void)
 {
+#ifdef HAVE_SELINUX
   return selinux_enabled;
+#else
+  return FALSE;
+#endif /* HAVE_SELINUX */
 }
 
 /**



More information about the dbus-commit mailing list