Thread (18 messages) 18 messages, 3 authors, 2020-11-25

Re: [PATCH v12 1/4] security: add inode_init_security_anon() LSM hook

From: Eric Biggers <ebiggers@kernel.org>
Date: 2020-11-06 17:45:32
Also in: linux-fsdevel, linux-mm, lkml, selinux

On Fri, Nov 06, 2020 at 07:56:23AM -0800, Lokesh Gidra wrote:
This change adds a new LSM hook, inode_init_security_anon(), that will
be used while creating secure anonymous inodes. The hook allows/denies
its creation and assigns a security context to the inode.

The new hook accepts an optional context_inode parameter that callers
can use to provide additional contextual information to security modules
for granting/denying permission to create an anon-inode of the same type.
This context_inode's security_context can also be used to initialize the
newly created anon-inode's security_context.

Signed-off-by: Lokesh Gidra <redacted>
Reviewed-by: Eric Biggers <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help