Re: [PATCH v30 06/12] fs,security: Add sb_delete hook

From
Kees Cook <hidden>
Date
2021-03-19 17:26:00
Also in
linux-api, linux-arch, linux-fsdevel, linux-kselftest, linux-security-module, lkml
Reply to
Mickaël Salaün, 2021-03-16
On Tue, Mar 16, 2021 at 09:42:46PM +0100, Mickaël Salaün wrote:
From: Mickaël Salaün <redacted>

The sb_delete security hook is called when shutting down a superblock,
which may be useful to release kernel objects tied to the superblock's
lifetime (e.g. inodes).

This new hook is needed by Landlock to release (ephemerally) tagged
struct inodes.  This comes from the unprivileged nature of Landlock
described in the next commit.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: James Morris <jmorris@namei.org>
Cc: Kees Cook <redacted>
Signed-off-by: Mickaël Salaün <redacted>
Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
Thread (44 messages) 44 messages, 4 authors, last reply 2021-03-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help