Skip to content

Add destructor hook to LSM modules

Mirsad Goran Todorovac linux-integrity linux-security-module lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 2 patches 19 repliesIn review

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add release hook to LSMinclude/linux/lsm_hooks.h+1 -08 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchAndy Shevchenko
1/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] Add destructor hook to LSM modules

LSM security/integrity/iint.c had the case of kmem_cache_create() w/o a proper kmem_cache_destroy() destructor.

Introducing the release() hook would enable LSMs to release allocated resources on exit, and in proper order, rather than dying all together with kernel shutdown in an undefined order.

Thanks,
Mirsad

---
 include/linux/lsm_hooks.h | 1 +
 security/integrity/iint.c | 7 +++++++
 2 files changed, 8 insertions(+)

--
Mirsad Goran Todorovac
Sistem inženjer
Grafički fakultet | Akademija likovnih umjetnosti
Sveučilište u Zagrebu

System engineer
Faculty of Graphic Arts | Academy of Fine Arts
University of Zagreb, Republic of Croatia
The European Union