[PATCH 3/9] ima: Move xattr hooks into LSM

Christian Brauner brauner at kernel.org
Tue Oct 18 15:07:51 UTC 2022


On Thu, Oct 13, 2022 at 03:36:48PM -0700, Kees Cook wrote:
> Move the xattr IMA hooks into normal LSM layer. As with SELinux and
> Smack, handle calling cap_inode_setxattr() internally.
> 
> Cc: Mimi Zohar <zohar at linux.ibm.com>
> Cc: Dmitry Kasatkin <dmitry.kasatkin at gmail.com>
> Cc: Paul Moore <paul at paul-moore.com>
> Cc: James Morris <jmorris at namei.org>
> Cc: "Serge E. Hallyn" <serge at hallyn.com>
> Cc: Borislav Petkov <bp at suse.de>
> Cc: Jonathan McDowell <noodles at fb.com>
> Cc: Takashi Iwai <tiwai at suse.de>
> Cc: Petr Vorel <pvorel at suse.cz>
> Cc: linux-integrity at vger.kernel.org
> Cc: linux-security-module at vger.kernel.org
> Signed-off-by: Kees Cook <keescook at chromium.org>
> ---

I like that changes obviously but in general, does IMA depend on being
called _after_ all other LSMs or is this just a historical artifact?



More information about the Linux-security-module-archive mailing list