Hack: Always check /etc/{passwd,shadow} in addition to defined files 87/187287/4 accepted/tizen/unified/20180917.195204 submit/tizen/20180914.113308
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 13 Sep 2018 12:32:49 +0000 (14:32 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 13 Sep 2018 12:32:49 +0000 (14:32 +0200)
commitba32c1cf2612f4c343dce9551c242ea504cb9da1
treeb19a542982d18819b09b0654809917e347e9b181
parent278c288f95e2612d4691c316969233996ef84444
Hack: Always check /etc/{passwd,shadow} in addition to defined files

When some users (eg. owner) might be in /opt/etc/passwd and some
("non-stock") are added to /opt/etc/passwd it means we have to
check both files.

Please note group is taken from /etc/group only.  Group membership
must not be managed by GUM due to the fact that assigning user to
given group requires altering file which defines the group.  Eg.
to add new user to system group 'audio' we would need to modify
/etc/group.  This breaks the requirement for rootfs to be read-only.

Change-Id: Ic63605b5f3964f166d3d5cf5332d5ee5175a7d18
src/daemon/core/gumd-daemon-group.c
src/daemon/core/gumd-daemon-user.c