linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Add destructor hook to LSM modules
@ 2023-03-10 19:26 Mirsad Goran Todorovac
  2023-03-10 19:46 ` Andy Shevchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Mirsad Goran Todorovac @ 2023-03-10 19:26 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-integrity, linux-security-module, Greg Kroah-Hartman,
	Andy Shevchenko, Thomas Weißschuh, Mimi Zohar, Paul Moore,
	Casey Schaufler, Christian Göttsche,
	Mickaël Salaün, Frederick Lawler


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-03-14 16:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-10 19:26 [PATCH v1 0/2] Add destructor hook to LSM modules Mirsad Goran Todorovac
2023-03-10 19:46 ` Andy Shevchenko
2023-03-10 20:49 ` Casey Schaufler
2023-03-10 22:33 ` Paul Moore
2023-03-10 22:53   ` Mirsad Goran Todorovac
2023-03-11 14:59     ` Paul Moore
2023-03-11 15:56       ` Mirsad Goran Todorovac
2023-03-13  9:32       ` Andy Shevchenko
2023-03-13 20:27         ` Paul Moore
2023-03-14 11:05           ` Andy Shevchenko
2023-03-14 12:04             ` Greg Kroah-Hartman
2023-03-14 16:32             ` Paul Moore

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).