chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:57 +0000 (10:12 +0200)
commit45ee9637428c9104a4d4b8c297df45b6608b99b1
tree9f658f60aff338797efc37d57607a8b9f45275a1
parentac74a6464227c4f4b0f277046a8837c75012d401
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/libelogind/sd-bus/bus-control.c