Files
linux/security/landlock
Paul Moore 9f9dc69e06 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>
2025-10-22 19:24:18 -04:00
..
2025-03-26 13:59:34 +01:00
2025-03-26 13:59:42 +01:00
2024-02-27 11:21:45 +01:00
2025-04-08 19:18:20 +02:00
2025-09-01 12:41:09 +02:00
2025-03-26 13:59:42 +01:00
2025-06-27 10:10:37 +02:00
2025-03-26 13:59:34 +01:00
2024-02-27 11:21:45 +01:00
2022-05-09 12:31:10 +02:00
2022-05-09 12:31:10 +02:00
2025-03-26 13:59:39 +01:00
2025-03-21 12:12:19 +01:00
2025-03-26 13:59:42 +01:00