]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lsm: rename the lsm order variables for consistency
authorPaul Moore <paul@paul-moore.com>
Tue, 11 Feb 2025 22:13:26 +0000 (17:13 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 22 Oct 2025 23:24:19 +0000 (19:24 -0400)
commit592b104f9b516b2c22cb23a2f4c34486fdb21bae
tree497e45e16e14a75fbf9b4269123c17427c7b3408
parent9f9dc69e06ecbc61e7a50b823b82a78daf130dc0
lsm: rename the lsm order variables for consistency

Rename the builtin_lsm_order variable to lsm_order_builtin,
chosen_lsm_order to lsm_order_cmdline, chosen_major_lsm to
lsm_order_legacy, ordered_lsms[] to lsm_order[], and exclusive
to lsm_exclusive.

This patch also renames the associated kernel command line parsing
functions and adds some basic function comment blocks.  The parsing
function choose_major_lsm() was renamed to lsm_choose_security(),
choose_lsm_order() to lsm_choose_lsm(), and enable_debug() to
lsm_debug_enable().

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