[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZA7tyrscjwavzY3a@smile.fi.intel.com>
Date: Mon, 13 Mar 2023 11:32:58 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Paul Moore <paul@...l-moore.com>
Cc: Mirsad Goran Todorovac <mirsad.todorovac@....unizg.hr>,
Mirsad Goran Todorovac <mirsad.goran.todorovac@....hr>,
linux-kernel@...r.kernel.org, linux-integrity@...r.kernel.org,
linux-security-module@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Thomas Weißschuh <linux@...ssschuh.net>,
Mimi Zohar <zohar@...ux.ibm.com>,
Casey Schaufler <casey@...aufler-ca.com>,
Christian Göttsche <cgzones@...glemail.com>,
Mickaël Salaün <mic@...ikod.net>,
Frederick Lawler <fred@...udflare.com>
Subject: Re: [PATCH v1 0/2] Add destructor hook to LSM modules
On Sat, Mar 11, 2023 at 09:59:17AM -0500, Paul Moore wrote:
> On Fri, Mar 10, 2023 at 5:53 PM Mirsad Goran Todorovac
> <mirsad.todorovac@....unizg.hr> wrote:
...
> With that out of the way, I wanted to make a quick comment on the
> patch itself. Currently LSMs do not support unloading, or dynamic
> loading for that matter. There are several reasons for this, but
> perhaps the most important is that in order to help meet the security
> goals for several of the LSMs they need to be present in the kernel
> from the very beginning and remain until the very end. Adding a
> proper "release" method to a LSM is going to be far more complicated
> than what you've done with this patchset, involving a lot of
> discussion both for the LSM layer itself and all of the currently
> supported LSMs, and ultimately I don't believe it is something we will
> want to support.
>
> I appreciate your desire to help, and I want to thank you for your
> patch and the effort behind it, but I don't believe the kobject memory
> leak you saw at kernel shutdown was a real issue (it was only "leaked"
> because the system was shutting down) and I'm not sure the current
> behavior is something we want to change in the near future.
Currently the security module so secure that even adds an unneeded noise to
the debugging output.
At very least it would be nice to add a stub and put a big comment
(on your taste) explaining why we do not do anything there.
Agree?
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists