On Tue, Oct 18, 2022 at 05:32:40PM +0200, Roberto Sassu wrote: > I also did this work before. In my implementation, I created a new > security hook called security_file_pre_free(). > > https://github.com/robertosassu/linux/commit/692c9d36fff865435b23b3cb765d31f3584f6263 > > If useful, the whole patch set is available at: > > https://github.com/robertosassu/linux/commits/ima-evm-lsm-v1-devel-v3 Ah, lovely! Can you pick this back up and run with it? I mainly did these a proof-of-concept, but it looks like you got further. -- Kees Cook