Commit 1f3bcd24 authored by James Carter's avatar James Carter Committed by Colin Walters

Initialize AVC earlier so we can look up service security contexts

	* bus/bus.c: Initialize AVC earlier:
	http://lists.freedesktop.org/archives/dbus/2008-October/010493.htmlSigned-off-by: Colin Walters's avatarColin Walters <walters@verbum.org>
parent 2f561c2f
......@@ -741,6 +741,11 @@ bus_context_new (const DBusString *config_file,
if (print_pid_pipe && _dbus_pipe_is_valid (print_pid_pipe) &&
!_dbus_pipe_is_stdout_or_stderr (print_pid_pipe))
_dbus_pipe_close (print_pid_pipe, NULL);
if (!bus_selinux_full_init ())
{
_dbus_warn ("SELinux initialization failed\n");
}
if (!process_config_postinit (context, parser, error))
{
......@@ -771,11 +776,6 @@ bus_context_new (const DBusString *config_file,
#endif
}
if (!bus_selinux_full_init ())
{
_dbus_warn ("SELinux initialization failed\n");
}
dbus_server_free_data_slot (&server_data_slot);
return context;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment