summaryrefslogtreecommitdiff
path: root/include/linux/trace_recursion.h
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2025-02-12 22:45:06 +0300
committerPaul Moore <paul@paul-moore.com>2025-10-23 02:24:18 +0300
commit9f9dc69e06ecbc61e7a50b823b82a78daf130dc0 (patch)
treead4279cddfd5f5b196c63340b0c6e0d0f1fb849e /include/linux/trace_recursion.h
parentfaabedcd6e88ca1f65ef45d711d2e0c7288fd551 (diff)
downloadlinux-9f9dc69e06ecbc61e7a50b823b82a78daf130dc0.tar.xz
lsm: replace the name field with a pointer to the lsm_id struct
Reduce the duplication between the lsm_id struct and the DEFINE_LSM() definition by linking the lsm_id struct directly into the individual LSM's DEFINE_LSM() instance. Linking the lsm_id into the LSM definition also allows us to simplify the security_add_hooks() function by removing the code which populates the lsm_idlist[] array and moving it into the normal LSM startup code where the LSM list is parsed and the individual LSMs are enabled, making for a cleaner implementation with less overhead at boot. 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>
Diffstat (limited to 'include/linux/trace_recursion.h')
0 files changed, 0 insertions, 0 deletions