Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2456704pxu; Sat, 28 Nov 2020 14:57:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5wvVH4W+Eeyg/yBPsA60Vd1mDRLCcPzoITZP0cje6Fg21IlsPqTdGPunth9oYy+zBeX6L X-Received: by 2002:a17:907:11d9:: with SMTP id va25mr13856768ejb.431.1606604265012; Sat, 28 Nov 2020 14:57:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606604265; cv=none; d=google.com; s=arc-20160816; b=A3wFj3lirste574+aUC4B5HkX83aT5txEqkQrTo4jrmzAZ0ePoz9QLXiNZrLKD8jLW xSAEhy0oyyER1kgolZMUNmciH1T8SOmjLPT6MNgPENnFygG9lRvV3Ji+zK0SGq5rsftp v0AUEvVDTkLx0SnZYKwoYbPxnwdvOP4PW7olr+OJNDF+SAAJ5QkF857Fow1aS62NKaRj Ovbw4fdkkdM6k0OaHvh0JTljz5WDlUz4ICgtBuWU0XiLH16EeQCr2xL+iyf7gbf3LBz+ c9z7tqPhK0YvpKl9RU0VSwn6GF8jmmT+HSV00299aSGk+XJkRO15z3trn4uh1KW+iR+c H8lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=/N/oViaNs/Ana3/n4Z9/6yjT/zSE/B+vDXRkktG0KS0=; b=qBYyrlm2MhSsnWRtjKAjWlo1RNqbV/Jj9OJupJ/CgQGg/alKVBh9JmdEn/nEGCz6uO K5p8J//2FnM3KJymvCW7TBkSklof41yh1C+3+yyqUXSUZcdM90wxk2a2GhZ33xDvA0C3 HseMv9GUAjW4Q4dhY3Nz5FvmlegC9XFWeIie+c5oJNahxb9tygjBqACUIA0WgOWbj66A mvZH39VY1B2U7EyHFnjSAZ0s2H93EMMUHs1fx5boEf+tZ2HZ7fJsvs9n+7AmVeGfFYUj g8EGqolYE6ufBNCgiv789khGXskf1lnHB4IyixyTYnO3SjLOerAU14g64bKXN2qWeJ8W I0uw== 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 i1si7921719ejz.363.2020.11.28.14.57.21; Sat, 28 Nov 2020 14:57:44 -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 S1732450AbgK1Wzd (ORCPT + 99 others); Sat, 28 Nov 2020 17:55:33 -0500 Received: from mail.hallyn.com ([178.63.66.53]:60772 "EHLO mail.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbgK1Wzd (ORCPT ); Sat, 28 Nov 2020 17:55:33 -0500 Received: by mail.hallyn.com (Postfix, from userid 1001) id 65BD38AB; Sat, 28 Nov 2020 16:54:50 -0600 (CST) Date: Sat, 28 Nov 2020 16:54:50 -0600 From: "Serge E. Hallyn" 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 , =?iso-8859-1?Q?St=E9phane?= Graber , 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, 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: <20201128225450.GC22812@mail.hallyn.com> References: <20201128213527.2669807-1-christian.brauner@ubuntu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201128213527.2669807-1-christian.brauner@ubuntu.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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. -serge