chiark / gitweb /
bus: fix SD_BUS_CREDS_AUGMENT on kdbus queries
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 18 Jan 2015 18:37:34 +0000 (19:37 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 18 Jan 2015 18:37:34 +0000 (19:37 +0100)
commit21fce57b26f50381d21a22be4d62a8f6067dc5c9
tree61d8907bd8d06ed9113c5c4412f7222a844e38f6
parenteea0b59193f37fcc9ee227de26d0009e6bdc6d92
bus: fix SD_BUS_CREDS_AUGMENT on kdbus queries

If we set SD_BUS_CREDS_AUGMENT, we *need* the PID from the kernel so we
can lookup further information from /proc. However, we *must* set
SD_BUS_CREDS_PIDS in "mask", otherwise, our creds-collector will never
actually copy the pid into "sd_bus_creds". Fix this, so
SD_BUS_CREDS_AUGMENT works even if SD_BUS_CREDS_PID is not specified by
the caller.
src/libsystemd/sd-bus/bus-control.c