From: "Serge E. Hallyn" <serge@hallyn.com> To: "Mickaël Salaün" <mic@digikod.net> Cc: "Serge E. Hallyn" <serge@hallyn.com>, "James Morris" <jmorris@namei.org>, "Jann Horn" <jannh@google.com>, "Al Viro" <viro@zeniv.linux.org.uk>, "Andrew Morton" <akpm@linux-foundation.org>, "Andy Lutomirski" <luto@amacapital.net>, "Anton Ivanov" <anton.ivanov@cambridgegreys.com>, "Arnd Bergmann" <arnd@arndb.de>, "Casey Schaufler" <casey@schaufler-ca.com>, "Jeff Dike" <jdike@addtoit.com>, "Jonathan Corbet" <corbet@lwn.net>, "Kees Cook" <keescook@chromium.org>, "Michael Kerrisk" <mtk.manpages@gmail.com>, "Richard Weinberger" <richard@nod.at>, "Shuah Khan" <shuah@kernel.org>, "Vincent Dagonneau" <vincent.dagonneau@ssi.gouv.fr>, 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-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-security-module@vger.kernel.org, x86@kernel.org, "Mickaël Salaün" <mic@linux.microsoft.com> Subject: Re: [PATCH v28 07/12] landlock: Support filesystem access-control Date: Fri, 19 Feb 2021 09:34:14 -0600 [thread overview] Message-ID: <20210219153414.GA18061@mail.hallyn.com> (raw) In-Reply-To: <aeba97b6-37cd-4870-0a40-3e7aa84ebd36@digikod.net> On Wed, Feb 10, 2021 at 09:17:25PM +0100, Mickaël Salaün wrote: > > On 10/02/2021 20:36, Serge E. Hallyn wrote: > > On Tue, Feb 02, 2021 at 05:27:05PM +0100, Mickaël Salaün wrote: > >> From: Mickaël Salaün <mic@linux.microsoft.com> > >> > >> Thanks to the Landlock objects and ruleset, it is possible to identify > >> inodes according to a process's domain. To enable an unprivileged > > > > This throws me off a bit. "identify inodes according to a process's domain". > > What exactly does it mean? "identify" how ? > > A domain is a set of rules (i.e. layers of rulesets) enforced on a set > of threads. Inodes are tagged per domain (i.e. not system-wide) and > actions are restricted thanks to these tags, which form rules. It means > that the created access-controls are scoped to a set of threads. Thanks, that's helpful. To me it would be much clearer if you used the word 'tagged' : Using the Landlock objects and ruleset, it is possible to tag inodes according to a process's domain. > >> process to express a file hierarchy, it first needs to open a directory > >> (or a file) and pass this file descriptor to the kernel through > >> landlock_add_rule(2). When checking if a file access request is > >> allowed, we walk from the requested dentry to the real root, following > >> the different mount layers. The access to each "tagged" inodes are > >> collected according to their rule layer level, and ANDed to create > >> access to the requested file hierarchy. This makes possible to identify > >> a lot of files without tagging every inodes nor modifying the > >> filesystem, while still following the view and understanding the user > >> has from the filesystem. > >> > >> Add a new ARCH_EPHEMERAL_INODES for UML because it currently does not > >> keep the same struct inodes for the same inodes whereas these inodes are > >> in use. > > > > -serge > >
next prev parent reply other threads:[~2021-02-19 15:35 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-02 16:26 [PATCH v28 00/12] Landlock LSM Mickaël Salaün 2021-02-02 16:26 ` [PATCH v28 01/12] landlock: Add object management Mickaël Salaün 2021-02-03 14:21 ` Serge E. Hallyn 2021-02-03 15:27 ` Mickaël Salaün 2021-02-02 16:27 ` [PATCH v28 02/12] landlock: Add ruleset and domain management Mickaël Salaün 2021-02-04 3:30 ` Serge E. Hallyn 2021-02-02 16:27 ` [PATCH v28 03/12] landlock: Set up the security framework and manage credentials Mickaël Salaün 2021-02-04 3:46 ` Serge E. Hallyn 2021-02-02 16:27 ` [PATCH v28 04/12] landlock: Add ptrace restrictions Mickaël Salaün 2021-02-05 13:48 ` Serge E. Hallyn 2021-02-02 16:27 ` [PATCH v28 05/12] LSM: Infrastructure management of the superblock Mickaël Salaün 2021-02-05 14:17 ` Serge E. Hallyn 2021-02-05 16:51 ` Casey Schaufler 2021-02-05 16:51 ` Casey Schaufler 2021-02-02 16:27 ` [PATCH v28 06/12] fs,security: Add sb_delete hook Mickaël Salaün 2021-02-05 14:21 ` Serge E. Hallyn 2021-02-05 14:57 ` Mickaël Salaün 2021-02-07 4:18 ` Serge E. Hallyn 2021-02-02 16:27 ` [PATCH v28 07/12] landlock: Support filesystem access-control Mickaël Salaün 2021-02-10 19:36 ` Serge E. Hallyn 2021-02-10 20:17 ` Mickaël Salaün 2021-02-19 15:34 ` Serge E. Hallyn [this message] 2021-02-02 16:27 ` [PATCH v28 08/12] landlock: Add syscall implementations Mickaël Salaün 2021-02-03 15:04 ` Serge E. Hallyn 2021-02-02 16:27 ` [PATCH v28 09/12] arch: Wire up Landlock syscalls Mickaël Salaün 2021-02-02 16:27 ` [PATCH v28 10/12] selftests/landlock: Add user space tests Mickaël Salaün 2021-02-02 16:27 ` [PATCH v28 11/12] samples/landlock: Add a sandbox manager example Mickaël Salaün 2021-02-02 16:27 ` [PATCH v28 12/12] landlock: Add user and kernel documentation Mickaël Salaün
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210219153414.GA18061@mail.hallyn.com \ --to=serge@hallyn.com \ --cc=akpm@linux-foundation.org \ --cc=anton.ivanov@cambridgegreys.com \ --cc=arnd@arndb.de \ --cc=casey@schaufler-ca.com \ --cc=corbet@lwn.net \ --cc=jannh@google.com \ --cc=jdike@addtoit.com \ --cc=jmorris@namei.org \ --cc=keescook@chromium.org \ --cc=kernel-hardening@lists.openwall.com \ --cc=linux-api@vger.kernel.org \ --cc=linux-arch@vger.kernel.org \ --cc=linux-doc@vger.kernel.org \ --cc=linux-fsdevel@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-kselftest@vger.kernel.org \ --cc=linux-security-module@vger.kernel.org \ --cc=luto@amacapital.net \ --cc=mic@digikod.net \ --cc=mic@linux.microsoft.com \ --cc=mtk.manpages@gmail.com \ --cc=richard@nod.at \ --cc=shuah@kernel.org \ --cc=vincent.dagonneau@ssi.gouv.fr \ --cc=viro@zeniv.linux.org.uk \ --cc=x86@kernel.org \ --subject='Re: [PATCH v28 07/12] landlock: Support filesystem access-control' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).