]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lsm: cleanup initialize_lsm() and rename to lsm_init_single()
authorPaul Moore <paul@paul-moore.com>
Tue, 11 Feb 2025 23:24:04 +0000 (18:24 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 22 Oct 2025 23:24:22 +0000 (19:24 -0400)
commit27be5600fe852c52d5b70f4ac9406879b39c864e
tree6c00aa59301798a0550dffc9d676edb658b2a9f3
parent291271e691740003021cf5b48fa7cf7e3371eaa7
lsm: cleanup initialize_lsm() and rename to lsm_init_single()

Rename initialize_lsm() to be more consistent with the rest of the LSM
initialization changes and rework the function itself to better fit
with the "exit on fail" coding pattern.

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