Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2893915ybk; Mon, 18 May 2020 10:29:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY/bYzpJCs4+NVTtHPT23EtaUzV1FFADyFpsQS73CYUzPSLmvVy91wZJHX757K2oAS//SU X-Received: by 2002:aa7:d28a:: with SMTP id w10mr13789415edq.206.1589822963410; Mon, 18 May 2020 10:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589822963; cv=none; d=google.com; s=arc-20160816; b=DuglCyCsu+92gZ+TZWkES1tM5KK56FLvGE27C2sb/vLQ/gL+Txf1qmnf7l6+wfRpGn vIMBfAGI2m9KmOEk7ZixtKukhS9rl1Ib/Jwwk+Xx/mIo2Bi48ptop1Vuy9Ye0qoftQEI 0ceRwBQfhOisyp+tRteEQzzS5i0cZg4MKBScn9t3t530kh4zpmCQapawrXiVhVd8vMGY vOSkBChH7JtwoeRG3YWtUdVfGIFHp0qWASymqHYlac1lsHKZCzFNqPOTPv23/L7pE5XA 9kiVEvNxl41LwHC54ETNk/C6FTgdTFTVYKO+3y5ZN59/gEE7SBkTiEkvbWY/IBm3bsOJ T5TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Rf4+hBoD1TufFAfP8oFpnGmCmQq8DRRl+yC7GIzRnls=; b=i2Nf7KbeL5A3S5QT2uW6r4FtyujpQMdSmFRhnReqhftW3ijajKSAl9oaBsiUUDJYqY //AhZ9KQ0YweqJmNVodv3eX9THu4fNWFJaeh5b1fCpZcnKbDfXDiGT9n6/RTwMQDqeaq k76uibSWxGjfZhpEHHfWepLlAIITPwI2j3/UvFPHK9XTTnQ85S2NN6n5qObC0jviUIE5 gcJMY/yA/ZuSW26p28nVzCLOtz3mH6jFJsKS/fPX2NFmCgpGcKYDX3XPNgLa3wR9HZp1 BjYVMwy5QBRlI8v6fmqd8RwLaMfO3tSsdDqIVX+z0s4l5Z+9BajPBx031vBD1VKgRsZ8 y7VQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc9si6741315ejb.370.2020.05.18.10.28.57; Mon, 18 May 2020 10:29:23 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728357AbgERRZM (ORCPT + 99 others); Mon, 18 May 2020 13:25:12 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:43558 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbgERRZM (ORCPT ); Mon, 18 May 2020 13:25:12 -0400 Received: by mail-pf1-f194.google.com with SMTP id v63so5251734pfb.10; Mon, 18 May 2020 10:25:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Rf4+hBoD1TufFAfP8oFpnGmCmQq8DRRl+yC7GIzRnls=; b=NhQurF0swK75au3jCljjIk+T7onO26pMHv2X+vSZjOoBH+PNQNYM6pN8K+gTDEZi5r gc6C3rIhup07M9HZ6QHLtU+18fdR8+LQHASFX3zCJj5x4Iomr+4GIe4ctvYZ8FvWxhwB vh3kzdXPhKTTvlGwUuSGfVYq9vmNwKiwIshHZTACXLKMPr4OIjBIE4KM5A0C91bZj58+ IixZBrJoVR9fxR41HHdg551iUxqR9NwDGyK154jj0n3EEKhaJz+HIXQGAsp9f4BPZOJV jpLte7c3x59G0Ax5aXjtRHBt0AJgcIZT8U0nJTtNbMy5CGWTS9jYdYRIYcwg0C40FXag FRsg== X-Gm-Message-State: AOAM531jb8IziEd+kKN00T6NHLNsHe/s3zY/2sfK9Af0zuSqHzY99tPl r8WMdmnZOvk14Gk8GY+gnMo= X-Received: by 2002:a62:e402:: with SMTP id r2mr18153266pfh.300.1589822711513; Mon, 18 May 2020 10:25:11 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id c3sm3614080pgk.76.2020.05.18.10.25.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 10:25:10 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id D0475404B0; Mon, 18 May 2020 17:25:09 +0000 (UTC) Date: Mon, 18 May 2020 17:25:09 +0000 From: Luis Chamberlain To: Kees Cook , Xiaoming Ni , Andrew Morton Cc: Stephen Kitt , Iurii Zaikin , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sysctl: const-ify ngroups_max Message-ID: <20200518172509.GM11244@42.do-not-panic.com> References: <20200518155727.10514-1-steve@sk2.org> <202005180908.C016C44D2@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202005180908.C016C44D2@keescook> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 18, 2020 at 09:08:22AM -0700, Kees Cook wrote: > On Mon, May 18, 2020 at 05:57:27PM +0200, Stephen Kitt wrote: > > ngroups_max is a read-only sysctl entry, reflecting NGROUPS_MAX. Make > > it const, in the same way as cap_last_cap. > > > > Signed-off-by: Stephen Kitt > > Reviewed-by: Kees Cook Kees, since there is quite a bit of sysctl cleanup stuff going on and I have a fs sysctl kitchen cleanup, are you alright if I carry this in a tree and send this to Andrew once done? This would hopefully avoid merge conflicts between these patches. I have to still re-spin my fs sysctl stuff, but will wait to do that once Xiaoming bases his series on linux-next. Luis