service: initialize supplementary group ids
authorYousong Zhou <yszhou4tech@gmail.com>
Sun, 11 Feb 2018 09:19:11 +0000 (17:19 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Wed, 28 Mar 2018 09:29:49 +0000 (17:29 +0800)
commitdfb68f8556df63878add145ad9c656381bc20656
tree2493896d22ef6b1ad87d3316d5c5c1e24a0ffa24
parent3db4e6d21ef85c3fbf1d7e0ae36bd1f039fec255
service: initialize supplementary group ids

We currently only call setgid() with user's primary group id for service
instance processes.  In the case of a user belong to multiple groups,
it's natural to also explicitly initialize their supplementary group ids

Fixes FS#988

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
service/instance.c
service/instance.h