]> Git Repo - qemu.git/commit
os-posix: set groups properly for -runas
authorStefan Hajnoczi <[email protected]>
Sat, 9 Jul 2011 09:22:07 +0000 (10:22 +0100)
committerBlue Swirl <[email protected]>
Tue, 12 Jul 2011 21:41:29 +0000 (21:41 +0000)
commitcc4662f9642995c78bed587707eeb9ad8500035b
tree3ab1a05e9b21edfbae7aa0235336537bd5468925
parent429bef6912bd3d504593b9aefdbcb39e981d387e
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 <[email protected]>
Acked-by: Chris Wright <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
os-posix.c
This page took 0.023662 seconds and 4 git commands to generate.