diff options
author | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-07-09 10:22:07 +0100 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-07-12 21:41:29 +0000 |
commit | cc4662f9642995c78bed587707eeb9ad8500035b (patch) | |
tree | 3ab1a05e9b21edfbae7aa0235336537bd5468925 /arch_init.c | |
parent | 429bef6912bd3d504593b9aefdbcb39e981d387e (diff) |
os-posix: set groups properly for -runas
Andrew Griffiths reports that -runas does not set supplementary group
IDs. This means that gid 0 (root) is not dropped when switching to an
unprivileged user.
Add an initgroups(3) call to use the -runas user's /etc/groups
membership to update the supplementary group IDs.
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'arch_init.c')
0 files changed, 0 insertions, 0 deletions