Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp669827ybk; Fri, 15 May 2020 10:26:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyMN8++G2JC1Ps3IDjhA90FL+N64mpGsGZ3RQPsoiYeCS0cXvSw6qHIQQvJfPW/dBaEB8D X-Received: by 2002:a05:6402:204b:: with SMTP id bc11mr3843057edb.114.1589563613965; Fri, 15 May 2020 10:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589563613; cv=none; d=google.com; s=arc-20160816; b=LGRADtKngWUGJjCRuBa3TZNQUk/imerOxe+WpXKx8O/iDc5U3CCdSkB30NyecXWXSk sBWWFj9y4PnMYuL8rKiZWpmeUX4ga/8JL3uyRu0ejD6RfONy7hlTPbpgFAjQe51uOKfC kZETdsMBQNbuqEnVJezASBi6KtkufEVXn5cyRA3TiIPry+hOPxG0UfqgUsrTe0WNSZ+g ykA8pE7klAVrSzOW1QpGoyh5ILSj78lm4y8RaHX4tzWgzUaiK1AgCjh131Vh1TwAayaa r3AL2x4vEqI8heu0Kc2QOncb4KTLBJNC7fXunNdzDT2YFLEdwOyAg1FmyHk4qvxMM3xc AFhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=IHxvKmLEvPaQYtIyCXV6Xv2XX6hgoWM+gEU1luvAHaw=; b=Au7UurEQDfwLKs8itGnIRNaS4U/fR+VTkrI86CC1b+nQasosSAEPLp9s4oUFyspfo0 1atk4P9TFKq90JwOztrsEeoa9gpb4qc8GzYEba7HtCySr1wHxmjvokhZQ2GzyfDkLVPp g1EC+KUM/EBZLQl27LVcl0TGLse+CeuKVqzAzFDrPZMjcr5aeX+SZodu+bBOcmaPEOUY 9fGjnrI1g4Yr66qchOd/Za2yPSb7gvMdagUoShuSWefnbchc0WQmCRvCR2QK7D6IJl4T 4DIgkXvWGEtCj7NLCr3qX1AErkH7NT9KJiyYQNjShXTCDYc4WyLNUeHEqHe/ZVsd5W+x bejA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e4si1619509edm.144.2020.05.15.10.26.30; Fri, 15 May 2020 10:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726731AbgEORYw (ORCPT + 99 others); Fri, 15 May 2020 13:24:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726372AbgEORYu (ORCPT ); Fri, 15 May 2020 13:24:50 -0400 X-Greylist: delayed 91468 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 15 May 2020 10:24:49 PDT Received: from ms.lwn.net (ms.lwn.net [IPv6:2600:3c01:e000:3a1::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8F3BC061A0C; Fri, 15 May 2020 10:24:49 -0700 (PDT) Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id DC103736; Fri, 15 May 2020 17:24:48 +0000 (UTC) Date: Fri, 15 May 2020 11:24:47 -0600 From: Jonathan Corbet To: Stephen Kitt Cc: Luis Chamberlain , Kees Cook , Iurii Zaikin , linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] docs: sysctl/kernel: document ngroups_max Message-ID: <20200515112447.4838b7ba@lwn.net> In-Reply-To: <20200515160222.7994-1-steve@sk2.org> References: <20200515160222.7994-1-steve@sk2.org> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 May 2020 18:02:22 +0200 Stephen Kitt wrote: > This is a read-only export of NGROUPS_MAX, so this patch also changes > the declarations in kernel/sysctl.c to const. > > Signed-off-by: Stephen Kitt > --- > Documentation/admin-guide/sysctl/kernel.rst | 9 +++++++++ > kernel/sysctl.c | 4 ++-- > 2 files changed, 11 insertions(+), 2 deletions(-) > > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst > index 0d427fd10941..5f12ee07665c 100644 > --- a/Documentation/admin-guide/sysctl/kernel.rst > +++ b/Documentation/admin-guide/sysctl/kernel.rst > @@ -459,6 +459,15 @@ Notes: > successful IPC object allocation. If an IPC object allocation syscall > fails, it is undefined if the value remains unmodified or is reset to -1. > > + > +ngroups_max > +=========== > + > +Maximum number of supplementary groups, _i.e._ the maximum size which > +``setgroups`` will accept. Exports ``NGROUPS_MAX`` from the kernel. Applied, thanks. jon