summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--service.c3
1 files changed, 3 insertions, 0 deletions
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");
 
a71b68a9de10cded6c3ca96a54eae106f1&follow=1'>Add Maiden, Mother, CroneJune McEnroe 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe