[RFC PATCH 07/29] lsm: rework lsm_active_cnt and lsm_idlist[]

Paul Moore paul at paul-moore.com
Thu Apr 10 21:58:11 UTC 2025


On Wed, Apr 9, 2025 at 5:38 PM Casey Schaufler <casey at schaufler-ca.com> wrote:
> On 4/9/2025 11:49 AM, Paul Moore wrote:
> > Move the LSM count and lsm_id list declarations out of a header that is
> > visible across the kernel and into a header that is limited to the LSM
> > framework.  This not only helps keep the include/linux headers smaller
> > and cleaner, it helps prevent misuse of these variables.
> >
> > During the move, lsm_active_cnt was renamed to lsm_count for the sake
> > of brevity.
>
> lsm_count could be mistaken to be the number of LSMs compiled in
> as opposed to the number that are active. Hence lsm_active_cnt.

Fair enough, I'll preserve the name.

-- 
paul-moore.com



More information about the Linux-security-module-archive mailing list