From owner-freebsd-standards@FreeBSD.ORG Sat Nov 29 13:23:36 2003 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29D2D16A4CE; Sat, 29 Nov 2003 13:23:36 -0800 (PST) Received: from host.server-23.net (host.server-23.net [64.191.95.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9E0343FBF; Sat, 29 Nov 2003 13:23:34 -0800 (PST) (envelope-from samy@kerneled.com) Received: from dial37-244.sbm.net.sa ([212.46.37.244] helo=beastie.freebsd.local) by host.server-23.net with asmtp (Exim 4.24) id 1AQCYj-0004PZ-Ek; Sat, 29 Nov 2003 16:23:22 -0500 Date: Sun, 30 Nov 2003 00:23:40 +0300 From: Samy Al Bahra To: Bruce Evans Message-Id: <20031130002340.57e5fb60.samy@kerneled.com> In-Reply-To: <20031126132013.E72053@gamplex.bde.org> References: <20031126021321.GA55417@dragon.nuxi.com> <20031126132013.E72053@gamplex.bde.org> Organization: Kerneled X-Mailer: Sylpheed version 0.9.5-gtk2-20030906 (GTK+ 2.2.1; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.server-23.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - kerneled.com cc: freebsd-standards@freebsd.org cc: obrien@freebsd.org Subject: Re: Why is max groups set so low (16)? X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2003 21:23:36 -0000 On Wed, 26 Nov 2003 13:37:15 +1100 (EST) Bruce Evans wrote: > The binary compatibility problems seem to be small. libc doesn't have > any references at all to NGROUPS_MAX except in man pages, but that is > partly because it mostly misspells NGROUPS_MAX as NGROUPS. This isn't a misspelling, param.h defines the following: #define NGROUPS NGROUPS_MAX /* max number groups */ > getgroups(2) and setgroups(2) are limited by whatever the kernel > wants, not by their API, although their documentation says that there > is a compile-time limit setgroups does not allow a user to be in a a greater number of groups than NGROUPS. It references this macro directly, meaning, it is a compile-time limit. Could you elaborate on what you mean exactly by "whatever the kernel wants"? -- +-----------------------------------+ | Samy Al Bahra | samy@kerneled.com | |-----------------------------------| | B3A7 F5BE B2AE 67B1 AC4B | | 0983 956D 1F4A AA54 47CB | |-----------------------------------| | http://www.kerneled.com | +-----------------------------------+