Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp291865lqo; Thu, 16 May 2024 06:36:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVv80CJtkDQxEBGrffkdyZsklm4N+gQQJwvUQVxSVSO0zr7TakNmiql/xhLGD9ow00bOGm7ZPxbO71CEYtJfYrCTYlMACBpq2mmxVnl8Q== X-Google-Smtp-Source: AGHT+IG+ZfwX79dz9oN7SEC1t/Cp6q+K57At3MMMg4PnYGi5/vfOnoZKBN6IEk5n6TkfX2DKfirE X-Received: by 2002:a05:6a00:3ccd:b0:6ed:4288:68bc with SMTP id d2e1a72fcca58-6f4e02d9c18mr21775872b3a.19.1715866584918; Thu, 16 May 2024 06:36:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715866584; cv=pass; d=google.com; s=arc-20160816; b=PYB9XVcqPkD9121KQ/dTUdl9ZNxU6frW0sp/MROIAj4i+x4AcohkTePo7T2eDP4fv9 DNbogxKT+qMzjE8RFDnPhyAaumwqLZhHXR1loOMYu7nP6M1Zh0p90uxPZxE2/KLKKyFc 7ZzTLr7TZuQlciXdcBwn7LU68eWnUMI780jsxdIj3Nosq7dEyZy0+tEmM5qNmM6Q8fXw bP9Iw+r0P8LypaHxlDEHsM5aEKaa44X5E5y+1QAd/J2D9HHHqg7WN0yineWoD86G9TDa SaQWf3Pu1gQI7Ye2f7fr55lY5+vpLHl544cccTsn7JFtzbGnKcRMUpSou9hgWdTTwObn IKKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=nIv4Wws22VMSdKba9OleGgvJ4MaRljubUT7PpzVomQ4=; fh=FfX7JwHIbOB006so2uGy1Q8h3zeJMfWKVZn6Id6OFZ0=; b=j+GSrW9tPJUbrdWhNhELO7IGjSJFeyN3XO9EhMeN09yrrHrXmnuDJ9wOkejXQva45X pmoMD4yi/aCCQWdZ2NbeJ9uIgOhQByjbr8OBM+XT1I0zfLltwGjasqR9GS6IZZbMCgrA ritqz9vAynlP/84PwqwBnvFUV0sH3yJYSGs7A+faP9L1egLWfsneh/zU+vMeZP99IFcu UG9EGF3sTyYQ3eR3wzeclA3zaiDxXGsS44Gm6m+dxJAyFa54RIQz+iK7bpAvwdfW3Njw 3VDbGujXKYGuPqkyMsStp79SSu3ZHITKtoGSMBSHS9SDCev3PsraFh3HTmxDjpcuUysC 3nTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dNlMIP63; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6340b3953bfsi15120253a12.215.2024.05.16.06.36.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 06:36:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dNlMIP63; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C55D2283F41 for ; Thu, 16 May 2024 13:36:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAE2B1482F0; Thu, 16 May 2024 13:36:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dNlMIP63" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E1A2D145A13; Thu, 16 May 2024 13:36:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715866573; cv=none; b=gUzcIZ5AX5ZoC9+m/vSNLee4kEqk+0ju4tFRgsQAWKwmt71wfQ5+6UkNCuzZeUhcL6j6O3gbArBVR4ZCGL3YY4qD5iFkzCYaDZA3ke2J0IY5u5nvl6wQAAP6S4cW9P6gXGB5iMaaKjgivFMXGbK4Dh/XZxlqWEszzoPhOButK1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715866573; c=relaxed/simple; bh=+X/pJ+cjQTPvyiXa9RlyRxNcuMfpjhyz9k+r/NmP/WY=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=rtAlH9yOLkMMnYH2jO5AstpDVL0HLGqtneCf/jPmDsrUIY5TWKysJ+9RqMN2S3E74YFCnp0sDMZt7y+DX6AbH1CjAKQjxQd04GnTUeCSzKvbKATEM5/nFnxUP1VD1FCbg/JMGQETO4CgEBGPrbb0/yX+kOfYqa0Hu6GSrwrc0rY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dNlMIP63; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34313C113CC; Thu, 16 May 2024 13:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715866572; bh=+X/pJ+cjQTPvyiXa9RlyRxNcuMfpjhyz9k+r/NmP/WY=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=dNlMIP63DMon7wdup7/PSlufCpBM3kgmim23PNWd6NN5hxQJ8SEk1godal4HV4LOu v4v8ECOM+6olmSSSzmjeu0I5ABuCHFHBISDIcUH6ptvx2R6lyLAmBb5QknQej8tHRw VxDVmPXSZRuoiAaa+15rP9BOwcFfzwob5/7KWhM83/oeean4xO/gksPZD2LYKmp7hd /mv22xlDcQaKuqTZWkrYtzhu3PrmJcMm0Vf0NEDr+5FZy0QBsai5s0ptdkKDcht2xH /ceZkDUqvklKuy5QUkE2BpfHwf7mVisucs5zNM8ujHMPvMVF2grFmO3vF+HJqQUcG6 61xV0KeMa+GqA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 16 May 2024 16:36:07 +0300 Message-Id: Cc: , , "Luis Chamberlain" , "Kees Cook" , "Joel Granados" , "Serge Hallyn" , "Paul Moore" , "James Morris" , "David Howells" , , , , , Subject: Re: [PATCH 0/3] Introduce user namespace capabilities From: "Jarkko Sakkinen" To: "Ben Boeckel" , "Jonathan Calmels" X-Mailer: aerc 0.17.0 References: <20240516092213.6799-1-jcalmels@3xx0.net> In-Reply-To: On Thu May 16, 2024 at 4:30 PM EEST, Ben Boeckel wrote: > On Thu, May 16, 2024 at 02:22:02 -0700, Jonathan Calmels wrote: > > Jonathan Calmels (3): > > capabilities: user namespace capabilities > > capabilities: add securebit for strict userns caps > > capabilities: add cap userns sysctl mask > >=20 > > fs/proc/array.c | 9 ++++ > > include/linux/cred.h | 3 ++ > > include/linux/securebits.h | 1 + > > include/linux/user_namespace.h | 7 +++ > > include/uapi/linux/prctl.h | 7 +++ > > include/uapi/linux/securebits.h | 11 ++++- > > kernel/cred.c | 3 ++ > > kernel/sysctl.c | 10 ++++ > > kernel/umh.c | 16 +++++++ > > kernel/user_namespace.c | 83 ++++++++++++++++++++++++++++++--- > > security/commoncap.c | 59 +++++++++++++++++++++++ > > security/keys/process_keys.c | 3 ++ > > 12 files changed, 204 insertions(+), 8 deletions(-) > > I note a lack of any changes to `Documentation/` which seems quite > glaring for something with such a userspace visibility aspect to it. > > --Ben Yeah, also in cover letter it would be nice to refresh what is a bounding set. I had to xref that (recalled what it is), and then got bored reading the rest :-) Not exactly in the nutshell cover letter tbh, but maybe the content in that would be better put to Documentation/ BR, Jarkko