From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Morris Subject: Re: [PATCH v17 05/10] fs,landlock: Support filesystem access-control Date: Thu, 14 May 2020 13:37:49 +1000 (AEST) Message-ID: References: <20200511192156.1618284-1-mic@digikod.net> <20200511192156.1618284-6-mic@digikod.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="1665246916-1014880157-1589427470=:30052" Return-path: In-Reply-To: <20200511192156.1618284-6-mic@digikod.net> Sender: linux-fsdevel-owner@vger.kernel.org To: =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= Cc: linux-kernel@vger.kernel.org, Al Viro , Andy Lutomirski , Arnd Bergmann , Casey Schaufler , Jann Horn , Jonathan Corbet , Kees Cook , Michael Kerrisk , =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= , "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: linux-arch.vger.kernel.org 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-1014880157-1589427470=:30052 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Mon, 11 May 2020, Mickaël Salaün wrote: > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 45cc10cdf6dd..2276642f8e05 100644 > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -1517,6 +1517,11 @@ struct super_block { > /* Pending fsnotify inode refs */ > atomic_long_t s_fsnotify_inode_refs; > > +#ifdef CONFIG_SECURITY_LANDLOCK > + /* References to Landlock underlying objects */ > + atomic_long_t s_landlock_inode_refs; > +#endif > + This needs to be converted to the LSM API via superblock blob stacking. See Casey's old patch: https://lore.kernel.org/linux-security-module/20190829232935.7099-2-casey@schaufler-ca.com/ -- James Morris --1665246916-1014880157-1589427470=:30052-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 14 May 2020 13:37:49 +1000 (AEST) From: James Morris Subject: Re: [PATCH v17 05/10] fs,landlock: Support filesystem access-control In-Reply-To: <20200511192156.1618284-6-mic@digikod.net> Message-ID: References: <20200511192156.1618284-1-mic@digikod.net> <20200511192156.1618284-6-mic@digikod.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="1665246916-1014880157-1589427470=:30052" Sender: linux-doc-owner@vger.kernel.org To: =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= Cc: linux-kernel@vger.kernel.org, Al Viro , Andy Lutomirski , Arnd Bergmann , Casey Schaufler , Jann Horn , Jonathan Corbet , Kees Cook , Michael Kerrisk , =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= , "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: <20200514033749.TBzdT-DuDtri419xXSYyVLzuzLelWZt8ddMf_74FtG8@z> 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-1014880157-1589427470=:30052 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Mon, 11 May 2020, Mickaël Salaün wrote: > diff --git a/include/linux/fs.h b/include/linux/fs.h > index 45cc10cdf6dd..2276642f8e05 100644 > --- a/include/linux/fs.h > +++ b/include/linux/fs.h > @@ -1517,6 +1517,11 @@ struct super_block { > /* Pending fsnotify inode refs */ > atomic_long_t s_fsnotify_inode_refs; > > +#ifdef CONFIG_SECURITY_LANDLOCK > + /* References to Landlock underlying objects */ > + atomic_long_t s_landlock_inode_refs; > +#endif > + This needs to be converted to the LSM API via superblock blob stacking. See Casey's old patch: https://lore.kernel.org/linux-security-module/20190829232935.7099-2-casey@schaufler-ca.com/ -- James Morris --1665246916-1014880157-1589427470=:30052--