chiark / gitweb /
bus-proxy: don't fake data we don't have
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 14 Feb 2015 14:13:38 +0000 (15:13 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 14 Feb 2015 14:13:38 +0000 (15:13 +0100)
commitd90c154eb180783098683ce8e1c03cd29d9b77ce
tree21ab00bd3ec396b4abd5718f2d8e16927c0c9496
parent9cad100eca602aa33c2f56475c30fccf14abea1a
bus-proxy: don't fake data we don't have

UDS sockets transmit EUID+EGID only. Don't try to fake data we don't know!
Otherwise, this might be used to override user-limits by non-root setuid
programs (by faking UID==EUID).

Now that sd-bus is fixed to always use EUID even on UDS, we can safely set
all other UID/GID fields to INVALID.
src/bus-proxyd/proxy.c