Re: [PATCH] integrity: Expose data structures required for include/linux/integrity.h

From: Mimi Zohar
Date: Tue Dec 17 2019 - 18:08:39 EST


On Tue, 2019-12-17 at 08:25 -0800, Casey Schaufler wrote:
> On 12/17/2019 5:47 AM, Florent Revest wrote:
> > From: Florent Revest <revest@xxxxxxxxxx>
> >
> > include/linux/integrity.h exposes the prototype of integrity_inode_get().
> > However, it relies on struct integrity_iint_cache which is currently
> > defined in an internal header, security/integrity/integrity.h.
> >
> > To allow the rest of the kernel to use integrity_inode_get,
>
> Why do you want to do this?

ditto

>
> > this patch
> > moves the definition of the necessary structures from a private header
> > to a global kernel header.
> >