dynamic-user: permit the case static uid and gid are different
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Oct 2017 05:41:13 +0000 (14:41 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Oct 2017 05:41:19 +0000 (14:41 +0900)
commit9ec655cbbd7505ef465e0444da0622e46099ce42
tree494bf962d1455e134d3b30f8227a7bcf4a1103a8
parent9da440b1b3d8476394e6ffcaf687e0f89932e6ac
dynamic-user: permit the case static uid and gid are different

This makes systemd supports the case that DynamicUser=yes and
static user and group exist such that uid and gid of them are different.
We only refuse the operation when user does not exist but the group
with the same name exists.

Fixes #7013.
src/core/dynamic-user.c