Re: [RFC 2/2] ima: Fix detection of read/write violations on stacked filesystems

From: Mimi Zohar
Date: Mon Apr 15 2024 - 06:48:17 EST


On Mon, 2024-04-15 at 10:09 +0200, Miklos Szeredi wrote:
> On Fri, 12 Apr 2024 at 21:09, Stefan Berger <stefanb@xxxxxxxxxxxxx> wrote:
>
> > I was hoping that this would be sufficiently generic to work with
> > potential future stacked filesystems as well that would need to also
> > provide support for D_REAL_FILEDATA.
>
> I also have very bad feelings from IMA digging in the internals of overlayfs.
>
> We should strive to get rid of remaining d_real() instances, not add more.
>
> On a related note, D_REAL_METADATA was apparently added for IMA
> (commit 11b3f8ae7081 ("fs: remove the inode argument to ->d_real()
> method")), but there's no current user. What's up with this?


It's queued in
https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git/ next-
integrity branch and should be linux-next.

thanks,

Mimi