Re: [PATCH v9 13/25] security: Introduce file_release hook

From: Roberto Sassu
Date: Tue Jan 16 2024 - 03:48:10 EST


On Mon, 2024-01-15 at 19:15 +0000, Al Viro wrote:
> On Mon, Jan 15, 2024 at 07:17:57PM +0100, Roberto Sassu wrote:
> > From: Roberto Sassu <roberto.sassu@xxxxxxxxxx>
> >
> > In preparation for moving IMA and EVM to the LSM infrastructure, introduce
> > the file_release hook.
> >
> > IMA calculates at file close the new digest of the file content and writes
> > it to security.ima, so that appraisal at next file access succeeds.
> >
> > An LSM could implement an exclusive access scheme for files, only allowing
> > access to files that have no references.
>
> Elaborate that last part, please.

Apologies, I didn't understand that either. Casey?

Thanks

Roberto