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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,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 D7535C433E3 for ; Wed, 8 Jul 2020 07:04:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B6A5B207DF for ; Wed, 8 Jul 2020 07:04:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730048AbgGHHD7 (ORCPT ); Wed, 8 Jul 2020 03:03:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729856AbgGHHD6 (ORCPT ); Wed, 8 Jul 2020 03:03:58 -0400 Received: from smtp-8fad.mail.infomaniak.ch (smtp-8fad.mail.infomaniak.ch [IPv6:2001:1600:3:17::8fad]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 896C3C061755 for ; Wed, 8 Jul 2020 00:03:58 -0700 (PDT) Received: from smtp-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4B1qzH2Lhxzlhcqk; Wed, 8 Jul 2020 09:03:55 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [94.23.54.103]) by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4B1qz772rqzlh8TH; Wed, 8 Jul 2020 09:03:47 +0200 (CEST) Subject: Re: [PATCH v19 07/12] landlock: Support filesystem access-control To: Randy Dunlap , linux-kernel@vger.kernel.org Cc: Al Viro , Andy Lutomirski , Anton Ivanov , Arnd Bergmann , Casey Schaufler , James Morris , Jann Horn , Jeff Dike , Jonathan Corbet , Kees Cook , Michael Kerrisk , =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= , Richard Weinberger , "Serge E . Hallyn" , 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 References: <20200707180955.53024-1-mic@digikod.net> <20200707180955.53024-8-mic@digikod.net> <6a80b712-a7b9-7b47-083a-08b7769016f8@infradead.org> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Message-ID: Date: Wed, 8 Jul 2020 09:03:46 +0200 User-Agent: MIME-Version: 1.0 In-Reply-To: <6a80b712-a7b9-7b47-083a-08b7769016f8@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit X-Antivirus: Dr.Web (R) for Unix mail servers drweb plugin ver.6.0.2.8 X-Antivirus-Code: 0x100000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/07/2020 22:11, Randy Dunlap wrote: > Hi-- > > On 7/7/20 11:09 AM, Mickaël Salaün wrote: >> --- >> arch/Kconfig | 7 + >> arch/um/Kconfig | 1 + >> include/uapi/linux/landlock.h | 78 +++++ >> security/landlock/Kconfig | 2 +- >> security/landlock/Makefile | 2 +- >> security/landlock/fs.c | 609 ++++++++++++++++++++++++++++++++++ >> security/landlock/fs.h | 60 ++++ >> security/landlock/setup.c | 7 + >> security/landlock/setup.h | 2 + >> 9 files changed, 766 insertions(+), 2 deletions(-) >> create mode 100644 include/uapi/linux/landlock.h >> create mode 100644 security/landlock/fs.c >> create mode 100644 security/landlock/fs.h >> >> diff --git a/arch/Kconfig b/arch/Kconfig >> index 8cc35dc556c7..483b7476ac69 100644 >> --- a/arch/Kconfig >> +++ b/arch/Kconfig >> @@ -845,6 +845,13 @@ config COMPAT_32BIT_TIME >> config ARCH_NO_PREEMPT >> bool >> >> +config ARCH_EPHEMERAL_STATES >> + def_bool n >> + help >> + An arch should select this symbol if it do not keep an internal kernel > > it does not > >> + state for kernel objects such as inodes, but instead rely on something > > instead relies on > >> + else (e.g. the host kernel for an UML kernel). >> + >> config ARCH_SUPPORTS_RT >> bool >> > > thanks. > Thanks Randy!