core: fix gid when DynamicUser=yes with static User=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 26 Jul 2018 02:42:54 +0000 (11:42 +0900)
committerMichael Biebl <biebl@debian.org>
Tue, 25 Sep 2018 14:11:12 +0000 (15:11 +0100)
commiteffa4a461aeb576444400e49c8e2c2365d26e70d
treea5478217843097c68607cca14bec32c3fb20115e
parent5c9c70f9b4b46a8431793e2027c6b8d279c730e2
core: fix gid when DynamicUser=yes with static User=

When DynamicUser=yes and static User= are set, and the user has
different uid and gid, then as the storage socket for the dynamic
user does not contains gid, we need to obtain gid.

Follow-up for 9ec655cbbd7505ef465e0444da0622e46099ce42.

Fixes #9702.

(cherry picked from commit 25a1df7c652d180eb716412885c3ce3fcc1bbded)

Gbp-Pq: Name core-fix-gid-when-DynamicUser-yes-with-static-User.patch
src/core/dynamic-user.c