bus-driver: Support returning org.freedesktop.DBus UID and PID
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Sat, 14 Nov 2015 15:32:43 +0000 (16:32 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 17 Nov 2015 18:21:44 +0000 (18:21 +0000)
commitcc37dc857fcd7a5afb57ba6e7c2002acc73a0b5d
tree33519a6e78bb6a36ad8dbfcd320ea2b558d71cd8
parent6e63e23983c3a0ef0fcd1c6f6f1c3a081ac5d5f6
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]
bus/driver.c
dbus/dbus-sysdeps-unix.h
dbus/dbus-sysdeps-win.c
dbus/dbus-sysdeps.h