]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lsm: cleanup the LSM blob size code
authorPaul Moore <paul@paul-moore.com>
Tue, 11 Feb 2025 22:49:11 +0000 (17:49 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 22 Oct 2025 23:24:21 +0000 (19:24 -0400)
commit291271e691740003021cf5b48fa7cf7e3371eaa7
tree067a017e2a24f22dab3b511222e5c0209f919242
parent752db06571816a3870b17814882425318b5ec0ef
lsm: cleanup the LSM blob size code

Convert the lsm_blob_size fields to unsigned integers as there is no
current need for them to be negative, change "lsm_set_blob_size()" to
"lsm_blob_size_update()" to better reflect reality, and perform some
other minor cleanups to the associated code.

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>
include/linux/lsm_hooks.h
security/lsm_init.c