summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
authorHavoc Pennington <hp@localhost.localdomain>2007-10-19 17:20:06 -0400
committerHavoc Pennington <hp@localhost.localdomain>2007-10-19 17:20:06 -0400
commita8e32b6874cf4d6c2954d60e676562282bfce4ea (patch)
treeeea0e2d138808614a4af27ca54c322646905e8a2 /bus
parent53f6713976f4b82841f11c37e450c93bd700bde9 (diff)
add HAVE_SELINUX around call to audit_init() so things build without selinux
2007-10-19 Havoc Pennington <hp@redhat.com> * bus/bus.c (bus_context_new): put audit_init() in HAVE_SELINUX
Diffstat (limited to 'bus')
-rw-r--r--bus/bus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bus/bus.c b/bus/bus.c
index e675b467..d28a9368 100644
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -759,8 +759,10 @@ bus_context_new (const DBusString *config_file,
_DBUS_ASSERT_ERROR_IS_SET (error);
goto failed;
}
-
+
+#ifdef HAVE_SELINUX
audit_init ();
+#endif
}
if (!bus_selinux_full_init ())