Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1021649lqo; Fri, 17 May 2024 08:27:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPm5BlzUGCube8DdnxzWDcjwX8n1oebQcuKSummvzi3vJg4vB3fXP26OOJ3139LrtR8WKIIzvJz07d6PXcxmc40D6xSzPuWXbcAADa1w== X-Google-Smtp-Source: AGHT+IFZZyX+T/GKrLRAlSI85YzxWpgHFuThSuOHQGx4F/+mQ5Qeor2Y7frCaTHWyvbB72JFkWcJ X-Received: by 2002:a17:902:e5cd:b0:1f0:9687:1cab with SMTP id d9443c01a7336-1f096871d50mr84340615ad.61.1715959657398; Fri, 17 May 2024 08:27:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715959657; cv=pass; d=google.com; s=arc-20160816; b=0pTkMWK7k3Jeb1yXNjcDdecu77Bm8mB5hs8m26/QqVKsp2KzcPoKy9gPj6i8BuV33x aFED9H6hPM9fmnx9MA9J4DzpCJwGXSR5QKYK1o4DiYgsOvzzsKvTtG5L75JlpEhXlVcT Wtqi9/RA283DNktYDEF3mkEoeSeQVtaHLyUTd1HwQ0aJH5hpHEQHQBdC6/DBky5Kx3bm 23WHDHaPZB26vZejp9VrgBGuBuDw+yzfhQvJ7sWh9bEixv9kktR8iRDCNrVgXUOnWrmP o/UxdPjn6tvoWLOJcMe+FFPFkyqb2OuPVUxQ0raluxhs+2pmcLu3xhFTGDLAS+TTiGKv Ie0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:user-agent:message-id:in-reply-to:date:references:cc:to :from; bh=Su++Nn6FuGjIilZs9OSUNbJ5+UX2IeZsEA2UB2kV/co=; fh=UkEWfWw4/0q3FWmpyslg8kdj3RfR2D1ookHzOd8dxv0=; b=c7y8qoDa69nsmENjhzi08WzegugV1OAzXAPY2fBUvPsvEvrX++tMrfzd65qIAWb83i iOyOEQW41uDRLJ9CHFyOg51jWe+R/ZgvYfMvez3dKLPbK3v/2xBh/GActOqKJl5I96P1 3rAHZHhs/tQ8v24FKA725x3d3B2VMBickO36UaIDkJv3pyxuCekR2/pI8x1LAnDCXQKb LD2WCGtwjLMk81liCdx+dy6X7Ne1Xsxo6HskA2ozaXKIqnpVwWvo111Wi/xrCj0PQ0cu 3a/eGaAVV4RfkG/EUn1SPW5U6SLE33Yv6g5Nc5XPeg24cc+WNSkv9Dh7kb/0ffVcoWsj qElA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=xmission.com dmarc=pass fromdomain=xmission.com); spf=pass (google.com: domain of linux-kernel+bounces-182263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-65832844b75si4189326a12.750.2024.05.17.08.27.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 08:27:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=xmission.com dmarc=pass fromdomain=xmission.com); spf=pass (google.com: domain of linux-kernel+bounces-182263-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182263-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 11307B250BC for ; Fri, 17 May 2024 15:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34F986BB52; Fri, 17 May 2024 14:59:42 +0000 (UTC) Received: from out03.mta.xmission.com (out03.mta.xmission.com [166.70.13.233]) (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 1723665194; Fri, 17 May 2024 14:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.70.13.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957981; cv=none; b=FRUEjW8s85prfks01xROpmRw0aaoG/OLMgWl4vUnLjI8sRrIPhO4YYtev7aP1Mc5K1flBEDg01BAAXROkT6bNBIv+9p4TRCM7qIFvWjphc4c3aZDdi49adIv3Coj+x6dj2k6PG9mjT+G+IZ4C9PESiZBA4GIo1GKVUHjP3F1Bc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715957981; c=relaxed/simple; bh=avilw900f6d/x8c9K8ZiuzFANTi4g2LTrG2nEouV5+A=; h=From:To:Cc:References:Date:In-Reply-To:Message-ID:MIME-Version: Content-Type:Subject; b=AMxUw1V68VZCn8y1DvJP1Q4FhhHkDBsD+jnxQ/GqdmErol+DU1lXqGV5Jxu/iYbpEHre4JfZjN8kwe83qQJahkmnFx1RLjNrPM8uD9S1upzShSZDQOLWxOwMnSpzOw+jE8rPZQj8FcW8LJ+o+BgfycbiH1BKnqV0wMCBW3ou11s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com; spf=pass smtp.mailfrom=xmission.com; arc=none smtp.client-ip=166.70.13.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xmission.com Received: from in02.mta.xmission.com ([166.70.13.52]:51178) by out03.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1s7yTv-00G0Ui-NK; Fri, 17 May 2024 08:22:47 -0600 Received: from ip68-227-168-167.om.om.cox.net ([68.227.168.167]:32812 helo=email.froward.int.ebiederm.org.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1s7yTu-00FFhy-O4; Fri, 17 May 2024 08:22:47 -0600 From: "Eric W. Biederman" To: Jonathan Calmels Cc: brauner@kernel.org, Luis Chamberlain , Kees Cook , Joel Granados , Serge Hallyn , Paul Moore , James Morris , David Howells , Jarkko Sakkinen , containers@lists.linux.dev, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org References: <20240516092213.6799-1-jcalmels@3xx0.net> <20240516092213.6799-2-jcalmels@3xx0.net> <878r08brmp.fsf@email.froward.int.ebiederm.org> Date: Fri, 17 May 2024 09:22:23 -0500 In-Reply-To: (Jonathan Calmels's message of "Fri, 17 May 2024 04:55:03 -0700") Message-ID: <87jzjsa57k.fsf@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1s7yTu-00FFhy-O4;;;mid=<87jzjsa57k.fsf@email.froward.int.ebiederm.org>;;;hst=in02.mta.xmission.com;;;ip=68.227.168.167;;;frm=ebiederm@xmission.com;;;spf=pass X-XM-AID: U2FsdGVkX18IkHUj49fRJqM7REx3ND8lhM0yvX7TxF4= X-SA-Exim-Connect-IP: 68.227.168.167 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Level: * X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4999] * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa06 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa06 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: *;Jonathan Calmels X-Spam-Relay-Country: X-Spam-Timing: total 365 ms - load_scoreonly_sql: 0.05 (0.0%), signal_user_changed: 11 (3.0%), b_tie_ro: 10 (2.6%), parse: 0.86 (0.2%), extract_message_metadata: 19 (5.2%), get_uri_detail_list: 1.95 (0.5%), tests_pri_-2000: 15 (4.2%), tests_pri_-1000: 2.9 (0.8%), tests_pri_-950: 1.21 (0.3%), tests_pri_-900: 1.01 (0.3%), tests_pri_-90: 70 (19.1%), check_bayes: 68 (18.6%), b_tokenize: 7 (2.0%), b_tok_get_all: 6 (1.7%), b_comp_prob: 2.2 (0.6%), b_tok_touch_all: 49 (13.5%), b_finish: 0.87 (0.2%), tests_pri_0: 231 (63.4%), check_dkim_signature: 0.52 (0.1%), check_dkim_adsp: 2.4 (0.7%), poll_dns_idle: 0.44 (0.1%), tests_pri_10: 2.1 (0.6%), tests_pri_500: 7 (2.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH 1/3] capabilities: user namespace capabilities X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Jonathan Calmels writes: > On Fri, May 17, 2024 at 06:32:46AM GMT, Eric W. Biederman wrote: >> >> Pointers please? >> >> That sentence sounds about 5 years out of date. > > The link referenced is from last year. > Here are some others often cited by distributions: > > https://nvd.nist.gov/vuln/detail/CVE-2022-0185 > https://nvd.nist.gov/vuln/detail/CVE-2022-1015 > https://nvd.nist.gov/vuln/detail/CVE-2022-2078 > https://nvd.nist.gov/vuln/detail/CVE-2022-24122 > https://nvd.nist.gov/vuln/detail/CVE-2022-25636 > > Recent thread discussing this too: > https://seclists.org/oss-sec/2024/q2/128 My apologies perhaps I trimmed too much. I know that user namespaces enlarge the attack surface. How much and how serious could be debated but for unprivileged users the attack surface is undoubtedly enlarged. As I read your introduction you were justifying the introduction of a new security mechanism with the observation that distributions were carrying distribution specific patches. To the best of my knowledge distribution specific patches and distributions disabling user namespaces have been gone for quite a while. So if that has changed recently I would like to know. Thank you, Eric