Re: [RFC PATCH 05/29] lsm: replace the name field with a pointer to the lsm_id struct

2025-04-15 Thread John Johansen
On 4/9/25 11:49, Paul Moore wrote: Reduce the duplication between the lsm_id struct and the DEFINE_LSM() definition by linking the lsm_id struct directly into the individual LSM's DEFINE_LSM() instance. Linking the lsm_id into the LSM definition also allows us to simplify the security_add_hooks(

[RFC PATCH 05/29] lsm: replace the name field with a pointer to the lsm_id struct

2025-04-10 Thread Paul Moore
Reduce the duplication between the lsm_id struct and the DEFINE_LSM() definition by linking the lsm_id struct directly into the individual LSM's DEFINE_LSM() instance. Linking the lsm_id into the LSM definition also allows us to simplify the security_add_hooks() function by removing the code which

Re: [RFC PATCH 05/29] lsm: replace the name field with a pointer to the lsm_id struct

2025-04-09 Thread Kees Cook
On Wed, Apr 09, 2025 at 02:49:50PM -0400, Paul Moore wrote: > Reduce the duplication between the lsm_id struct and the DEFINE_LSM() > definition by linking the lsm_id struct directly into the individual > LSM's DEFINE_LSM() instance. > > Linking the lsm_id into the LSM definition also allows us to