From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Subject: Re: [PATCH v19 07/12] landlock: Support filesystem access-control Date: Wed, 8 Jul 2020 09:03:46 +0200 Message-ID: References: <20200707180955.53024-1-mic@digikod.net> <20200707180955.53024-8-mic@digikod.net> <6a80b712-a7b9-7b47-083a-08b7769016f8@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <6a80b712-a7b9-7b47-083a-08b7769016f8@infradead.org> Content-Language: fr Sender: owner-linux-security-module@vger.kernel.org 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@v List-Id: linux-arch.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! From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH v19 07/12] landlock: Support filesystem access-control 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 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 Sender: linux-doc-owner@vger.kernel.org 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 List-ID: Message-ID: <20200708070346.G2fmYw5YKiu3sGRYSCbx1GhSSuBscqzpgqPtDf5wd8M@z> 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!