Call setgroups() before setgid() to drop supplementary groups.
authorEmil Mikulic <emikulic@gmail.com>
Thu, 1 Jan 2015 11:22:41 +0000 (22:22 +1100)
committerEmil Mikulic <emikulic@gmail.com>
Thu, 1 Jan 2015 11:22:41 +0000 (22:22 +1100)
commit49ad7a0421773b2b2b77026826804addf77dea85
tree703ca9033f894f84bbf3af916208a630fa1491f1
parent03a22661a0ffe438f521b47c86c65b68c111615a
Call setgroups() before setgid() to drop supplementary groups.

See also: https://www.securecoding.cert.org/confluence/display/seccode/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges
darkhttpd.c