]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/nsenter.c
nsenter: fix set{gid,uid} order,drop supplementary groups
authorKarel Zak <kzak@redhat.com>
Thu, 6 Feb 2014 13:14:50 +0000 (14:14 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Feb 2014 13:14:50 +0000 (14:14 +0100)
commit99d7e174119e8717efae0f0fec5f7dec14492fb3
treeef37247d46d6ee71459259a16c25ddfde78b0bc7
parent3938c08cd56a7c83ea387073c1404d0e864c9fa3
nsenter: fix set{gid,uid} order,drop supplementary groups

.. always, always setgid() before setuid()!

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1061751
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/nsenter.c