From e381f7bbe31a7e0d7fc6155341ce0ce9828c54d3 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 16 Aug 2020 16:13:43 -0400 Subject: Clear groups list for services --- service.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service.c b/service.c index ec7ac68..e27437f 100644 --- a/service.c +++ b/service.c @@ -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"); -- cgit 1.4.1