Messages in this thread | | | Subject | Re: [PATCH 3/9] ima: Move xattr hooks into LSM | From | Mimi Zohar <> | Date | Wed, 19 Oct 2022 09:24:05 -0400 |
| |
On Tue, 2022-10-18 at 17:07 +0200, Christian Brauner wrote: > 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@linux.ibm.com> > > Cc: Dmitry Kasatkin <dmitry.kasatkin@gmail.com> > > Cc: Paul Moore <paul@paul-moore.com> > > Cc: James Morris <jmorris@namei.org> > > Cc: "Serge E. Hallyn" <serge@hallyn.com> > > Cc: Borislav Petkov <bp@suse.de> > > Cc: Jonathan McDowell <noodles@fb.com> > > Cc: Takashi Iwai <tiwai@suse.de> > > Cc: Petr Vorel <pvorel@suse.cz> > > Cc: linux-integrity@vger.kernel.org > > Cc: linux-security-module@vger.kernel.org > > Signed-off-by: Kees Cook <keescook@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?
Calculating the EVM HMAC must be last, after the other security xattrs have been updated.
-- thanks,
Mimi
| |