]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
landlock: Set up the security framework and manage credentials
authorMickaël Salaün <mic@linux.microsoft.com>
Thu, 22 Apr 2021 15:41:13 +0000 (17:41 +0200)
committerJames Morris <jamorris@linux.microsoft.com>
Thu, 22 Apr 2021 19:22:10 +0000 (12:22 -0700)
commit385975dca53eb41031d0cbd1de318eb1bc5d6bb9
treead268a1c1db4f879768d396bfeb03389b3b5c8f3
parentae271c1b14de343b888e77f74f640e3dcbdeb4c9
landlock: Set up the security framework and manage credentials

Process's credentials point to a Landlock domain, which is underneath
implemented with a ruleset.  In the following commits, this domain is
used to check and enforce the ptrace and filesystem security policies.
A domain is inherited from a parent to its child the same way a thread
inherits a seccomp policy.

Cc: James Morris <jmorris@namei.org>
Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Reviewed-by: Jann Horn <jannh@google.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210422154123.13086-4-mic@digikod.net
Signed-off-by: James Morris <jamorris@linux.microsoft.com>
security/Kconfig
security/landlock/Makefile
security/landlock/common.h [new file with mode: 0644]
security/landlock/cred.c [new file with mode: 0644]
security/landlock/cred.h [new file with mode: 0644]
security/landlock/setup.c [new file with mode: 0644]
security/landlock/setup.h [new file with mode: 0644]