linux/security/smack
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
..
Kconfig
Makefile
smack.h smack: remove /smack/logging if audit is not configured 2025-02-13 18:33:55 -08:00
smack_access.c smack: remove /smack/logging if audit is not configured 2025-02-13 18:33:55 -08:00
smack_lsm.c lsm: replace the name field with a pointer to the lsm_id struct 2025-10-22 19:24:18 -04:00
smack_netfilter.c Smack changes for v6.12 2024-09-19 13:09:19 +02:00
smackfs.c security/smack/smackfs: small kernel-doc fixes 2025-05-19 16:28:32 -07:00