Commit 2016b83d authored by Ralf Habacker's avatar Ralf Habacker

_dbus_change_to_daemon_user() is platform related and commit...

_dbus_change_to_daemon_user() is platform related  and commit 0a3905d7 broke windows builds
parent e77fff6d
......@@ -22,7 +22,9 @@
*/
#include <dbus/dbus-internals.h>
#include <dbus/dbus-string.h>
#ifndef DBUS_WIN
#include <dbus/dbus-userdb.h>
#endif
#include "selinux.h"
#include "services.h"
#include "policy.h"
......@@ -1017,6 +1019,7 @@ bus_selinux_shutdown (void)
#endif /* HAVE_SELINUX */
}
#ifndef DBUS_WIN
/**
* Changes the user and group the bus is running as.
*
......@@ -1118,3 +1121,5 @@ _dbus_change_to_daemon_user (const char *user,
return TRUE;
}
#endif
......@@ -68,7 +68,5 @@ BusSELinuxID* bus_selinux_init_connection_id (DBusConnection *connection,
void bus_selinux_audit_init(void);
dbus_bool_t _dbus_change_to_daemon_user (const char *user,
DBusError *error);
#endif /* BUS_SELINUX_H */
......@@ -408,6 +408,8 @@ dbus_bool_t _dbus_become_daemon (const DBusString *pidfile,
dbus_bool_t keep_umask);
dbus_bool_t _dbus_verify_daemon_user (const char *user);
dbus_bool_t _dbus_change_to_daemon_user (const char *user,
DBusError *error);
dbus_bool_t _dbus_write_pid_to_file_and_pipe (const DBusString *pidfile,
DBusPipe *print_pid_pipe,
......
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