From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 5BEF12F16C for ; Fri, 13 Sep 2024 16:47:49 +0200 (CEST) Received: (qmail 10198 invoked by uid 550); 13 Sep 2024 14:47:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 10162 invoked from network); 13 Sep 2024 14:47:44 -0000 Date: Fri, 13 Sep 2024 10:47:36 -0400 From: Rich Felker To: Kate Deplaix Cc: "musl@lists.openwall.com" Message-ID: <20240913144736.GZ10433@brightrain.aerifal.cx> References: <20240411010738.GY4163@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] [PATCH] Increase NGROUPS_MAX from 32 to 1024 On Fri, Sep 13, 2024 at 11:45:13AM +0000, Kate Deplaix wrote: > Hi, > > Is there anything i can do to make a fix for this go forward? What requirements are you still trying to satisfy? 3f49203c55cc made it so initgroups accepts arbitrarily many groups independent of NGROUPS_MAX. My reading of POSIX is that the macro NGROUPS_MAX is a "minimum maximum" that any instance of the implementation might impose, which for us I think is the 32 imposed by old Linux. sysconf(_SC_NGROUPS_MAX) does not yet expose a larger runtime max; is that what you'd like to see happen? Source I'm going on: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/limits.h.html under the heading "Runtime Increasable Values". Rich