From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4196C34047 for ; Wed, 19 Feb 2020 12:06:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B3E8E2465D for ; Wed, 19 Feb 2020 12:06:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727069AbgBSMGY (ORCPT ); Wed, 19 Feb 2020 07:06:24 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:57574 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbgBSMGY (ORCPT ); Wed, 19 Feb 2020 07:06:24 -0500 Received: from ip5f5bf7ec.dynamic.kabel-deutschland.de ([95.91.247.236] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j4O7B-0002If-8k; Wed, 19 Feb 2020 12:06:05 +0000 Date: Wed, 19 Feb 2020 13:06:04 +0100 From: Christian Brauner To: "Serge E. Hallyn" Cc: =?utf-8?B?U3TDqXBoYW5l?= Graber , "Eric W. Biederman" , Aleksa Sarai , Jann Horn , smbarber@chromium.org, Seth Forshee , Alexander Viro , Alexey Dobriyan , James Morris , Kees Cook , Jonathan Corbet , Phil Estes , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, containers@lists.linux-foundation.org, linux-security-module@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH v3 09/25] fs: add is_userns_visible() helper Message-ID: <20200219120604.vqudwaeppebvisco@wittgenstein> References: <20200218143411.2389182-1-christian.brauner@ubuntu.com> <20200218143411.2389182-10-christian.brauner@ubuntu.com> <20200219024233.GA19334@mail.hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200219024233.GA19334@mail.hallyn.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 18, 2020 at 08:42:33PM -0600, Serge Hallyn wrote: > On Tue, Feb 18, 2020 at 03:33:55PM +0100, Christian Brauner wrote: > > Introduce a helper which makes it possible to detect fileystems whose > > superblock is visible in multiple user namespace. This currently only > > means proc and sys. Such filesystems usually have special semantics so their > > behavior will not be changed with the introduction of fsid mappings. > > Hi, > > I'm afraid I've got a bit of a hangup about the terminology here. I > *think* what you mean is that SB_I_USERNS_VISIBLE is an fs whose uids are > always translated per the id mappings, not fsid mappings. But when I see Correct! > the name it seems to imply that !SB_I_USERNS_VISIBLE filesystems can't > be seen by other namespaces at all. > > Am I right in my first interpretation? If so, can we talk about the > naming? Yep, your first interpretation is right. What about: wants_idmaps()