[PATCH v22 06/12] fs,security: Add sb_delete hook
James Morris
jmorris at namei.org
Wed Oct 28 05:30:28 UTC 2020
On Tue, 27 Oct 2020, Mickaël Salaün wrote:
> From: Mickaël Salaün <mic at linux.microsoft.com>
>
> 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 at zeniv.linux.org.uk>
> Cc: James Morris <jmorris at namei.org>
> Cc: Jann Horn <jannh at google.com>
> Cc: Kees Cook <keescook at chromium.org>
> Cc: Serge E. Hallyn <serge at hallyn.com>
> Signed-off-by: Mickaël Salaün <mic at linux.microsoft.com>
Al, Kees, JJ et al, any objections?
--
James Morris
<jmorris at namei.org>
More information about the Linux-security-module-archive
mailing list