Clear groups list for services

This commit is contained in:
C. McEnroe 2020-08-16 16:13:43 -04:00
parent 3fbe9b5933
commit e381f7bbe3

View File

@ -184,6 +184,9 @@ void serviceStart(struct Service *service) {
error = setgid(serviceGID);
if (error) err(ExitNoExec, "setgid");
error = setgroups(1, &serviceGID);
if (error) err(ExitNoExec, "setgroups");
error = setuid(serviceUID);
if (error) err(ExitNoExec, "setuid");