[4.0] 0d26b91 Bump the limit on how many groups we can deal with.

Lasse Karstensen lkarsten at varnish-software.com
Mon Sep 22 16:38:23 CEST 2014


commit 0d26b91f11f45e1ee0aead24729ca2919cbe57c3
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