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=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 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 4B3F4C433E7 for ; Wed, 14 Oct 2020 20:47:10 +0000 (UTC) Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.kernel.org (Postfix) with SMTP id 4194022248 for ; Wed, 14 Oct 2020 20:47:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4194022248 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=namei.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernel-hardening-return-20205-kernel-hardening=archiver.kernel.org@lists.openwall.com Received: (qmail 24120 invoked by uid 550); 14 Oct 2020 20:47:00 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Received: (qmail 24086 invoked from network); 14 Oct 2020 20:46:59 -0000 Date: Thu, 15 Oct 2020 07:46:21 +1100 (AEDT) From: James Morris To: =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= cc: linux-kernel@vger.kernel.org, "Serge E . Hallyn" , Al Viro , Richard Weinberger , Andy Lutomirski , Anton Ivanov , Arnd Bergmann , Casey Schaufler , Jann Horn , Jeff Dike , Jonathan Corbet , Kees Cook , Michael Kerrisk , Shuah Khan , Vincent Dagonneau , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, x86@kernel.org, =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= Subject: Re: [PATCH v21 07/12] landlock: Support filesystem access-control In-Reply-To: Message-ID: References: <20201008153103.1155388-1-mic@digikod.net> <20201008153103.1155388-8-mic@digikod.net> <77ea263c-4200-eb74-24b2-9a8155aff9b5@digikod.net> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1665246916-1392177967-1602708383=:4000" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1665246916-1392177967-1602708383=:4000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Wed, 14 Oct 2020, Mickaël Salaün wrote: > > On 14/10/2020 20:52, Mickaël Salaün wrote: > > > > On 14/10/2020 20:07, James Morris wrote: > >> On Thu, 8 Oct 2020, Mickaël Salaün wrote: > >> > >>> +config ARCH_EPHEMERAL_STATES > >>> + def_bool n > >>> + help > >>> + An arch should select this symbol if it does not keep an internal kernel > >>> + state for kernel objects such as inodes, but instead relies on something > >>> + else (e.g. the host kernel for an UML kernel). > >>> + > >> > >> This is used to disable Landlock for UML, correct? > > > > Yes > > > >> I wonder if it could be > >> more specific: "ephemeral states" is a very broad term. > >> > >> How about something like ARCH_OWN_INODES ? > > > > Sounds good. We may need add new ones (e.g. for network socket, UID, > > etc.) in the future though. > > > > Because UML is the exception here, it would be more convenient to keep > the inverted semantic. What about ARCH_NO_OWN_INODES or > ARCH_EPHEMERAL_INODES? The latter seems good. -- James Morris --1665246916-1392177967-1602708383=:4000--