From owner-freebsd-stable Tue Mar 18 10:20:41 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C915A37B401 for ; Tue, 18 Mar 2003 10:20:39 -0800 (PST) Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A4A343FAF for ; Tue, 18 Mar 2003 10:20:39 -0800 (PST) (envelope-from allbery@ece.cmu.edu) Received: from [128.2.138.43] (VPN43.ECE.CMU.EDU [128.2.138.43]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h2IIKXM15606; Tue, 18 Mar 2003 13:20:33 -0500 (EST) Subject: Re: setting kern.ngroups From: Brandon S Allbery KF8NH To: Brian Szymanski Cc: christopher@indymedia.org, freebsd-stable@freebsd.org In-Reply-To: <20030318172857.GA22835@localhost> References: <4394.192.168.1.5.1048003806.squirrel@wuhjuhbuh.afraid.org> <1048006379.40809.2.camel@rushlight.kf8nh.apk.net> <20030318172857.GA22835@localhost> Content-Type: text/plain Organization: Message-Id: <1048011633.2072.1.camel@pyanfar.ece.cmu.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 18 Mar 2003 13:20:33 -0500 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 2003-03-18 at 12:28, Brian Szymanski wrote: > > Raising the maximum number of groups requires changes all over the > > place; even if you find them all and rebuild the world (yes, libc > > depends on it as well) you'll find that any program that looks at the > > group vector will blow up because it only has space reserved for 16 > > groups. You don't want to go there. > > Aren't these programs broken by not using NGROUPS_MAX from syslimits.h? My point is that changing syslimits.h doesn't help existing compiled code at all; you need to recompile everything that touches the group vector, which may be more code than you expect. (Arguably they should use a runtime method of sizing the group vector but I've seen very few programs that do.) -- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university ["better check the oblivious first" -ke6sls] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message