sd-bus: query pid also when searching for supplementary gids
authorIsmo Puustinen <ismo.puustinen@intel.com>
Wed, 13 Apr 2016 12:38:03 +0000 (15:38 +0300)
committerIsmo Puustinen <ismo.puustinen@intel.com>
Wed, 13 Apr 2016 13:18:47 +0000 (16:18 +0300)
commitf5faf24679c81217bf1bc21b9228dd651db387d7
treea1568faf4685216482ce548ac337d6ce6d4998aa
parent025ef1d2264b24e77283d312dede8af01fa050f6
sd-bus: query pid also when searching for supplementary gids

If the SD_BUS_CREDS_SUPPLEMENTARY_GIDS value is requested, the pid is
queried to find out the supplementary gids value from /proc/pid/status.
Otherwise sd_bus_creds_get_supplementary_gids() won't work unless some
other value in mask triggered fetching the pid information.
src/libsystemd/sd-bus/bus-control.c