[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e6a975ce-3880-1429-f013-40604e361c8f@schaufler-ca.com>
Date: Fri, 10 Mar 2023 12:49:57 -0800
From: Casey Schaufler <casey@...aufler-ca.com>
To: Mirsad Goran Todorovac <mirsad.goran.todorovac@....hr>,
linux-kernel@...r.kernel.org
Cc: linux-integrity@...r.kernel.org,
linux-security-module@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Thomas Weißschuh <linux@...ssschuh.net>,
Mimi Zohar <zohar@...ux.ibm.com>,
Paul Moore <paul@...l-moore.com>,
Christian Göttsche <cgzones@...glemail.com>,
Mickaël Salaün <mic@...ikod.net>,
Frederick Lawler <fred@...udflare.com>, casey@...aufler-ca.com
Subject: Re: [PATCH v1 0/2] Add destructor hook to LSM modules
On 3/10/2023 11:26 AM, Mirsad Goran Todorovac wrote:
> LSM security/integrity/iint.c had the case of kmem_cache_create() w/o a proper
> kmem_cache_destroy() destructor.
LSMs should be using the security blobs associated with system objects
rather than doing their own memory management.
>
> 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
Powered by blists - more mailing lists