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>
Sun, 28 Oct 2018 12:02:18 +0000 (12:02 +0000)
commit38680578d04af9fb5cd3dfb0442827e819ffb70e
treeb955e8cecca69a0b744b95f18d60eaf82474cee5
parentc5ca6b27ad33d2f5821c09b2e3c96248df7491ba
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