]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lsm: get rid of the lsm_names list and do some cleanup
authorPaul Moore <paul@paul-moore.com>
Thu, 13 Feb 2025 22:34:12 +0000 (17:34 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 22 Oct 2025 23:24:19 +0000 (19:24 -0400)
commit935d508d4d7ab9d19c603bd7eb2937249551d507
treebcbb3eb0ba2e56b02fea8eecb6da0291e91fd82d
parent250898ca335f337bc032a9693dc0a30a1cb85825
lsm: get rid of the lsm_names list and do some cleanup

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@paul-moore.com>
include/linux/lsm_hooks.h
security/inode.c
security/lsm_init.c