]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lsm: introduce looping macros for the initialization code
authorPaul Moore <paul@paul-moore.com>
Wed, 9 Apr 2025 21:59:42 +0000 (17:59 -0400)
committerPaul Moore <paul@paul-moore.com>
Wed, 22 Oct 2025 23:24:17 +0000 (19:24 -0400)
commit37f788f65528611f4482e2135d11ca34afb25828
treea3ffcc5150a932889b01f6bda54555d93dea7baf
parente02578561d47567be26e603c6d27c10a5aa4c2c4
lsm: introduce looping macros for the initialization code

There are three common for loop patterns in the LSM initialization code
to loop through the ordered LSM list and the registered "early" LSMs.
This patch implements these loop patterns as macros to help simplify the
code and reduce the chance for errors.

Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: John Johansen <john.johhansen@canonical.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/lsm_init.c