2005-07-15 Colin Walters <walters@verbum.org>
authorColin Walters <walters@verbum.org>
Fri, 15 Jul 2005 04:04:43 +0000 (04:04 +0000)
committerColin Walters <walters@verbum.org>
Fri, 15 Jul 2005 04:04:43 +0000 (04:04 +0000)
* bus/selinux.c (bus_selinux_append_context): Wrap in
HAVE_SELINUX.

ChangeLog
bus/selinux.c

index fdd2f7b..714e96a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-15  Colin Walters  <walters@verbum.org>
+
+       * bus/selinux.c (bus_selinux_append_context): Wrap in
+       HAVE_SELINUX.
+
 2005-07-14  John (J5) Palmieri  <johnp@redhat.com>
 
        * python/_dbus.py (Bus::remove_signal_receiver):
index 9e73cc6..2b88a60 100644 (file)
@@ -571,6 +571,7 @@ dbus_bool_t
 bus_selinux_append_context (DBusMessage    *message,
                            BusSELinuxID   *context)
 {
+#ifdef HAVE_SELINUX
   /* Note if you change how the context is marshalled (e.g. to ay),
    * you also need to change driver.c for the appropriate return value.
    */
@@ -578,6 +579,9 @@ bus_selinux_append_context (DBusMessage    *message,
                                   DBUS_TYPE_STRING,
                                   SELINUX_SID_FROM_BUS (context),
                                   DBUS_TYPE_INVALID);
+#else
+  return FALSE;
+#endif
 }
 
 /**