Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3128336pxb; Tue, 19 Jan 2021 14:43:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmq8IDwwS8Z2guXd9Gual5ckl8a72sYI5J7NgxQuhHc7XfYso9jpMs2csBuMWJktCQ4AAq X-Received: by 2002:a05:6402:a52:: with SMTP id bt18mr5230212edb.228.1611096226820; Tue, 19 Jan 2021 14:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611096226; cv=none; d=google.com; s=arc-20160816; b=ori69l192y0hboBj40DV1FJv+s3TaggTsDwUWReFVoU2pYtstlA5KI2tByIg/MFEPF PZvKcs6/QNBnVhThKYKWhmZvWvvBVjrDDFYVaGQuDJM9wgwkEvVxQ23FqmMk78z0vetm bkmcPhdCSKmIHh4sGplEe/GZFu71HLgqadjgEC7X3Rd3tW3Zy/K3CgYL97zDW68yFjax EIclqG/C5dOOFoo2KnfOD6QYCD2qsYeNB8HuiXjrTKYs2Tnxnr1OwAZlOGRO5lgr9k5K TleFKqpzUuTMPUU9WMphwqQxo1uHYU/NRjxJ7xNhJVt8Uo1up4CoR6eTOaQaBGUWa6ez 32vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=o+92mnjDv7rdZYp8j8YI4ReUnmBbRpOQQOiVt+8+hxE=; b=AreMLZ0PirspALfOX0FtYnysuQFIYX8BlBqyQI7pq6nAqcjHase9Zap56FR2D0DWtx 90ALu+8/Ke1IQMqsDy7+UKj94oC5IBmIL/c4xk9ECGoRWZZyE99QTK+Ip6m+nqONsNnW NVv6jqy0GNV0q5KDPrzIarVtyWLEO2otAT5eiStcfak7ndJEPcaVkrHEU7nNTlP+RbQi uGoJz0VisXnyTt1Xm2/g3bchJrNPv7Jgsxcev+X8RpZYyf7YpTxgCT2kPckaWXX9zvY0 aT+cUwL9DJjM0nIEvvEFBdFlkb8hrIJvG+hU+3ww9WfBZDKYZpauCad7+K9vKA+jvrph RbLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GjC8doWn; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 m15si59671eje.225.2021.01.19.14.43.23; Tue, 19 Jan 2021 14:43:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GjC8doWn; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405156AbhASOcd (ORCPT + 99 others); Tue, 19 Jan 2021 09:32:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388016AbhASJpS (ORCPT ); Tue, 19 Jan 2021 04:45:18 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E00C3C0613D6; Tue, 19 Jan 2021 01:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=o+92mnjDv7rdZYp8j8YI4ReUnmBbRpOQQOiVt+8+hxE=; b=GjC8doWnOwIa2OSQr+lX9CLHnm +nzh2bI1+BLva7zYP4UH8uMEhUbdf527UvRXobllJKmGO+fWOvDIOLjqpwkHq6eQkG/9mobiD54Y9 mNq4EJksOpTzFqZgpFs5+GaEM2q+0DLJRXAQ4Bgbv2J8TbnD2LwEVZTH7CWUq9q3iG8qp0aBRcsJI Ak4qy4GiZC9iW0b9ZGaNhs0MFlzvwahdOR/hZqoBBU9c3FY9SD+qqTZ0jp5lb+6f0SrrmFmWAILz4 eQ6L+lA4w3NpZK9rMfRqhLNF4yT9kXiNoxDCXoa2jj7CqhoQi5cj7UU8pgKXAd1khvJPGwVM98fss hY/8CIeQ==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1l1nYw-00E8MW-C5; Tue, 19 Jan 2021 09:44:34 +0000 Date: Tue, 19 Jan 2021 09:44:34 +0000 From: Christoph Hellwig To: Christian Brauner Cc: Alexander Viro , Christoph Hellwig , linux-fsdevel@vger.kernel.org, John Johansen , James Morris , Mimi Zohar , Dmitry Kasatkin , Stephen Smalley , Casey Schaufler , Arnd Bergmann , Andreas Dilger , OGAWA Hirofumi , Geoffrey Thomas , Mrunal Patel , Josh Triplett , Andy Lutomirski , Theodore Tso , Alban Crequy , Tycho Andersen , David Howells , James Bottomley , Seth Forshee , St??phane Graber , Linus Torvalds , Aleksa Sarai , Lennart Poettering , "Eric W. Biederman" , smbarber@chromium.org, Phil Estes , Serge Hallyn , Kees Cook , Todd Kjos , Paul Moore , Jonathan Corbet , containers@lists.linux-foundation.org, linux-security-module@vger.kernel.org, linux-api@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-integrity@vger.kernel.org, selinux@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v5 30/42] would_dump: handle idmapped mounts Message-ID: <20210119094434.GN3364550@infradead.org> References: <20210112220124.837960-1-christian.brauner@ubuntu.com> <20210112220124.837960-31-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210112220124.837960-31-christian.brauner@ubuntu.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jan 12, 2021 at 11:01:12PM +0100, Christian Brauner wrote: > When determining whether or not to create a coredump the vfs will verify > that the caller is privileged over the inode. Make the would_dump() > helper handle idmapped mounts by passing down the mount's user namespace > of the exec file. If the initial user namespace is passed nothing > changes so non-idmapped mounts will see identical behavior as before. Looks good, Reviewed-by: Christoph Hellwig