aboutsummaryrefslogtreecommitdiff
path: root/sparc.ld
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-07-18 10:55:31 +0000
committerPeter Maydell <peter.maydell@linaro.org>2011-07-18 10:55:31 +0000
commit0fe5b5a71d54d448a3a881fc5b0328d7636a573c (patch)
treea65448cb9c33716ddc019f828656497bf03e331c /sparc.ld
parentdfa1c09c45565e6dde4b4dedc809c61a31c8332c (diff)
os-posix: set groups properly for -runas2011.07-0.rebasing
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 'sparc.ld')
0 files changed, 0 insertions, 0 deletions