]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
lsm: rework the LSM enable/disable setter/getter functions
authorPaul Moore <paul@paul-moore.com>
Fri, 11 Apr 2025 02:04:26 +0000 (22:04 -0400)
committerPaul Moore <paul@paul-moore.com>
Wed, 22 Oct 2025 23:24:20 +0000 (19:24 -0400)
commit2d67172612fd9df2c4d08533515ef483cb526dd9
tree49cd21e555032e82b5f9fc762bac4e97dffceac9
parent935d508d4d7ab9d19c603bd7eb2937249551d507
lsm: rework the LSM enable/disable setter/getter functions

In addition to style changes, rename set_enabled() to lsm_enabled_set()
and is_enabled() to lsm_is_enabled() to better fit within the LSM
initialization code.

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