summaryrefslogtreecommitdiff
path: root/envlist.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-07-09 10:22:07 +0100
committerBlue Swirl <blauwirbel@gmail.com>2011-07-12 21:41:29 +0000
commitcc4662f9642995c78bed587707eeb9ad8500035b (patch)
tree3ab1a05e9b21edfbae7aa0235336537bd5468925 /envlist.c
parent429bef6912bd3d504593b9aefdbcb39e981d387e (diff)
downloadqemu-cc4662f9642995c78bed587707eeb9ad8500035b.tar.gz
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 'envlist.c')
0 files changed, 0 insertions, 0 deletions