diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2015-11-14 16:32:43 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-11-17 18:21:44 +0000 |
commit | cc37dc857fcd7a5afb57ba6e7c2002acc73a0b5d (patch) | |
tree | 33519a6e78bb6a36ad8dbfcd320ea2b558d71cd8 /dbus/dbus-sysdeps-win.c | |
parent | 6e63e23983c3a0ef0fcd1c6f6f1c3a081ac5d5f6 (diff) | |
download | dbus-cc37dc857fcd7a5afb57ba6e7c2002acc73a0b5d.tar.gz |
bus-driver: Support returning org.freedesktop.DBus UID and PID
Attempting to call SetEnvironment on systemd causes it to inquire
about the caller's connection UID and PID. If this check fails,
the call is rejected.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92857
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
[smcv: go back to DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN as the error code
for failure to determine the pid]
Diffstat (limited to 'dbus/dbus-sysdeps-win.c')
-rw-r--r-- | dbus/dbus-sysdeps-win.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index fb14e409..fb195801 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2138,6 +2138,15 @@ _dbus_getpid (void) return GetCurrentProcessId (); } +/** Gets our Unix UID + * @returns on Windows, just DBUS_UID_UNSET + */ +dbus_uid_t +_dbus_getuid (void) +{ + return DBUS_UID_UNSET; +} + /** nanoseconds in a second */ #define NANOSECONDS_PER_SECOND 1000000000 /** microseconds in a second */ |