mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-10 05:40:19 +01:00
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
This commit is contained in:
parent
53f6713976
commit
a8e32b6874
2 changed files with 9 additions and 3 deletions
|
|
@ -1,9 +1,13 @@
|
|||
2007-10-19 Havoc Pennington <hp@redhat.com>
|
||||
2007-10-19 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* bus/bus.c (bus_context_new): put audit_init() in HAVE_SELINUX
|
||||
|
||||
2007-10-19 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* bus/bus.c (bus_context_new): put the audit_init() in here
|
||||
instead, which I believe ends up being the same as where it was
|
||||
before, though I'm not sure I understand why it goes here.
|
||||
|
||||
|
||||
* dbus/dbus-sysdeps-util-unix.c (_dbus_change_to_daemon_user):
|
||||
remove audit_init() from here, this file can't depend on code in
|
||||
bus/ directory
|
||||
|
|
|
|||
|
|
@ -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 ())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue