Re: [RFC PATCH 08/29] lsm: get rid of the lsm_names list and do some cleanup

2025-05-22 Thread Casey Schaufler
On 4/9/2025 11:49 AM, Paul Moore wrote: > The LSM currently has a lot of code to maintain a list of the > currently active LSMs in a human readable string, with the only > user being the "/sys/kernel/security/lsm" code. Let's drop all > of that code and generate the string on an as-needed basis wh

Re: [RFC PATCH 08/29] lsm: get rid of the lsm_names list and do some cleanup

2025-04-15 Thread John Johansen
On 4/10/25 15:47, Paul Moore wrote: On Wed, Apr 9, 2025 at 7:13 PM Kees Cook wrote: On Wed, Apr 09, 2025 at 02:49:53PM -0400, Paul Moore wrote: The LSM currently has a lot of code to maintain a list of the currently active LSMs in a human readable string, with the only user being the "/sys/ke

Re: [RFC PATCH 08/29] lsm: get rid of the lsm_names list and do some cleanup

2025-04-10 Thread Paul Moore
On Thu, Apr 10, 2025 at 10:15 PM Kees Cook wrote: > On Thu, Apr 10, 2025 at 06:47:12PM -0400, Paul Moore wrote: > > On Wed, Apr 9, 2025 at 7:13 PM Kees Cook wrote: > > > Better yet, do this whole thing in a initcall after LSMs are loaded, and > > > both can gain __ro_after_init... > > > > I *real

Re: [RFC PATCH 08/29] lsm: get rid of the lsm_names list and do some cleanup

2025-04-10 Thread Kees Cook
On Thu, Apr 10, 2025 at 06:47:12PM -0400, Paul Moore wrote: > On Wed, Apr 9, 2025 at 7:13 PM Kees Cook wrote: > > Better yet, do this whole thing in a initcall after LSMs are loaded, and > > both can gain __ro_after_init... > > I *really* disliked all the stuff we were having to do during boot, >

Re: [RFC PATCH 08/29] lsm: get rid of the lsm_names list and do some cleanup

2025-04-10 Thread Paul Moore
On Wed, Apr 9, 2025 at 7:13 PM Kees Cook wrote: > > On Wed, Apr 09, 2025 at 02:49:53PM -0400, Paul Moore wrote: > > The LSM currently has a lot of code to maintain a list of the > > currently active LSMs in a human readable string, with the only > > user being the "/sys/kernel/security/lsm" code.

Re: [RFC PATCH 08/29] lsm: get rid of the lsm_names list and do some cleanup

2025-04-09 Thread Kees Cook
On Wed, Apr 09, 2025 at 02:49:53PM -0400, Paul Moore wrote: > The LSM currently has a lot of code to maintain a list of the > currently active LSMs in a human readable string, with the only > user being the "/sys/kernel/security/lsm" code. Let's drop all > of that code and generate the string on a