[PATCH v4 11/34] lsm: get rid of the lsm_names list and do some cleanup

Paul Moore paul at paul-moore.com
Sun Sep 21 19:23:00 UTC 2025


On Fri, Sep 19, 2025 at 3:16 PM Mimi Zohar <zohar at linux.ibm.com> wrote:
>
> On Tue, 2025-09-16 at 18:03 -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 first use and then cache it for subsequent use.
> >
> > Signed-off-by: Paul Moore <paul at paul-moore.com>
>
> FYI, checkpatch.pl complains of unbalanced braces, otherwise

Looks good to me?

% stg export --stdout lsm-lsm_names_cleanup | ./scripts/checkpatch.pl -
total: 0 errors, 0 warnings, 139 lines checked

Your patch has no obvious style problems and is ready for submission.

-- 
paul-moore.com



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