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>
Fri, 7 Sep 2018 06:41:12 +0000 (07:41 +0100)
commitc40aa79ffa4ec02929dcba8723d03e5f14e954a0
tree3f0b32072ca9f1a5fb79dce870e526369ba71bd6
parent5d0a2ded6b24d284a41f1515381a0b8e909c60f3
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