diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-01-18 21:34:33 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-01-18 21:34:33 +0100 |
commit | 50efadb0ae7bcb4fc5ce5e41163c697501ca1d50 (patch) | |
tree | f60f85ec9aa3a025568614b310f91b0d97ceed56 /src/bus-proxyd | |
parent | 607ff5f95aac387ef3fb79358e7416b7c8b2090d (diff) |
bus-proxy: don't pretend everyone is root
While it's a lovely scenario, it's probably not really useful. Fix our
GetConnectionUnixUser() to return the actual 'euid' which we asked for,
not the possible uninitialized 'uid'.
Diffstat (limited to 'src/bus-proxyd')
-rw-r--r-- | src/bus-proxyd/driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bus-proxyd/driver.c b/src/bus-proxyd/driver.c index b2a44563c0..5287ff140b 100644 --- a/src/bus-proxyd/driver.c +++ b/src/bus-proxyd/driver.c @@ -256,7 +256,7 @@ int bus_proxy_process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m, SharedPoli if (r < 0) return synthetic_reply_method_errno(m, r, &error); - return synthetic_reply_method_return(m, "u", (uint32_t) creds->uid); + return synthetic_reply_method_return(m, "u", (uint32_t) creds->euid); } else if (sd_bus_message_is_method_call(m, "org.freedesktop.DBus", "GetId")) { sd_id128_t server_id; |