[master] 2be788a Bump the limit on how many groups we can deal with.

Poul-Henning Kamp phk at FreeBSD.org
Thu Jul 31 11:48:35 CEST 2014


commit 2be788a9420bf9fdc3da2daa9cbfaffb8242faf2
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Jul 31 09:48:11 2014 +0000

    Bump the limit on how many groups we can deal with.

diff --git a/bin/varnishd/mgt/mgt_sandbox.c b/bin/varnishd/mgt/mgt_sandbox.c
index 973ec83..69ce5fa 100644
--- a/bin/varnishd/mgt/mgt_sandbox.c
+++ b/bin/varnishd/mgt/mgt_sandbox.c
@@ -63,9 +63,9 @@
 static void __match_proto__(mgt_sandbox_f)
 mgt_sandbox_unix(enum sandbox_e who)
 {
-#define NGID 10
-	gid_t gid_list[NGID];
+#define NGID 2000
 	int i;
+	gid_t gid_list[NGID];
 
 	if (geteuid() != 0) {
 		REPORT0(LOG_INFO, "Not running as root, no priv-sep");



More information about the varnish-commit mailing list