mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 05:18:00 +02:00
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.html Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
parent
2f561c2fc5
commit
1f3bcd241e
1 changed files with 5 additions and 5 deletions
10
bus/bus.c
10
bus/bus.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue