From a8e32b6874cf4d6c2954d60e676562282bfce4ea Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 19 Oct 2007 17:20:06 -0400 Subject: add HAVE_SELINUX around call to audit_init() so things build without selinux 2007-10-19 Havoc Pennington * bus/bus.c (bus_context_new): put audit_init() in HAVE_SELINUX --- bus/bus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bus') 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 ()) -- cgit