Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4337087pxu; Tue, 1 Dec 2020 02:23:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnEvEk4vySfgdt7x52vBhAwTE4x9gtKmxwZL3iGXG+0BVMG9uC4TOLMQZj+IucHRvYliuB X-Received: by 2002:a17:907:2706:: with SMTP id w6mr2199043ejk.137.1606818204386; Tue, 01 Dec 2020 02:23:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606818204; cv=none; d=google.com; s=arc-20160816; b=mYKknDCrGrOYGw43Ea87zw/4Wo6NjgBsu/foEPnkocevssBq6WF67vTuAEZQnNKJ02 N/I8l6CBPx2CoXNXNT8EF+xnW8qQLLHAwmNjM67wsr+TJG5kU9KjTi5EDfDjGEV87qVW AGKCjTEbUrTEc/gie1//uVGy2bS9U/WF1Six9nBcSR5nd5u1aLSU1OKuTJXo4SkFsKXy z9hgJEi0pB5Y66bl7hjheHteEvNd1VFwh7Q3p9oav3hJMtn9T89qQc7vZgT/FPiD5OiI 05xRF37XazZ5/SFC1R6oeA5ECJ+dXpfCSX+GlNHjwJe98rrlYFFicvsqyOBu8bKeVC03 gbLQ== 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; bh=l91YX5cgAooagEV36Rbihmy5Czj6BBVaegurWLn8jlM=; b=YDrM9KbV40oF9zb+g2JlNqnlHrtlDFGMrugRB3tWlv/hqLuEID+Ver6OHi0zH7jRyN cPBbhXTtZPYHfeif+AAnqtg8cmFQrs0aAjHA4UhA/7iQVQQH8axQgr3No3IuTdF/Rs5j 6+VXXK55SvavtR1X7TIAEWRTxvcXvY788y6bWDrTTm0BiA0wJjvwvqBWPgv1Xf0APVxm H0cxhLiTObnlhiuqG25RAQ7n+xmYuVKfG+x+9cITo45t8qFM/lByX1XtwlK6AlqsY84t E/AVKgiUApVGLwQCHIn9d0kCNC6IjpdoJy86sbwFhsiYrI/0o8LO02++lCpryN31sO+8 Ftmw== ARC-Authentication-Results: i=1; mx.google.com; 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 us11si621757ejb.665.2020.12.01.02.22.53; Tue, 01 Dec 2020 02:23:24 -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; 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 S2388631AbgLAKTK (ORCPT + 99 others); Tue, 1 Dec 2020 05:19:10 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:50849 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388603AbgLAKTJ (ORCPT ); Tue, 1 Dec 2020 05:19:09 -0500 Received: from ip5f5af0a0.dynamic.kabel-deutschland.de ([95.90.240.160] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1kk2jb-00076u-2S; Tue, 01 Dec 2020 10:18:11 +0000 Date: Tue, 1 Dec 2020 11:18:06 +0100 From: Christian Brauner To: "Serge E. Hallyn" 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 , =?utf-8?B?U3TDqXBoYW5l?= Graber , Aleksa Sarai , Lennart Poettering , "Eric W. Biederman" , smbarber@chromium.org, Phil Estes , Kees Cook , Todd Kjos , Paul Moore , Jonathan Corbet , containers@lists.linux-foundation.org, fstests@vger.kernel.org, linux-security-module@vger.kernel.org, linux-api@vger.kernel.org, linux-ext4@vger.kernel.org, linux-integrity@vger.kernel.org, selinux@vger.kernel.org Subject: Re: [PATCH v3 00/38] idmapped mounts Message-ID: <20201201101806.3gd4kj36kpg4dif3@wittgenstein> References: <20201128213527.2669807-1-christian.brauner@ubuntu.com> <20201128225450.GC22812@mail.hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201128225450.GC22812@mail.hallyn.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, Nov 28, 2020 at 04:54:50PM -0600, Serge Hallyn wrote: > On Sat, Nov 28, 2020 at 10:34:49PM +0100, Christian Brauner wrote: > > Hey everyone, > > Hey Christian, > > a general request. Argue with me if it seems misguided. > > When looking at a patch or a small hunk of code, these days, if a variable > called 'ns' or 'user_ns' is seen passed to a function, it can be easy to > assume which user_ns it is based on what you think would make sense, but if > your assumption is wrong, your patch review will be wrong. > > Can we stick to a convention where we have maybe > > subj_userns - the userns of the task seeking some action > obj_userns - the userns of the thing being acted on - task, superblock,... > mnt_userns - the userns of a mountpoint through which an object is seen > > You're replacing a lot of such callers and callsites in this patchset, so > this would be a great time to start doing that. Hey Serge, this makes a lot of sense. I'll convert all accesses to the vfsmount's userns we're introducing in this series to to mnt_userns at least. Christian