linux/security/selinux
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
..
include lsm/stable-6.18 PR 20250926 2025-09-30 08:48:29 -07:00
ss selinux/stable-6.17 PR 20250725 2025-07-28 18:25:57 -07:00
.gitignore selinux: move genheaders to security/selinux/ 2024-10-03 16:07:51 -04:00
Kconfig
Makefile selinux: add generated av_permissions.h to targets 2024-12-11 13:42:35 -05:00
avc.c selinux: Remove redundant __GFP_NOWARN 2025-08-12 13:18:13 -04:00
genheaders.c selinux: move genheaders to security/selinux/ 2024-10-03 16:07:51 -04:00
hooks.c lsm: replace the name field with a pointer to the lsm_id struct 2025-10-22 19:24:18 -04:00
ibpkey.c selinux: unify OOM handling in network hashtables 2025-04-11 16:29:51 -04:00
ima.c
netif.c selinux: unify OOM handling in network hashtables 2025-04-11 16:29:51 -04:00
netlabel.c lsm/stable-6.12 PR 20240911 2024-09-16 18:19:47 +02:00
netlink.c
netnode.c selinux: unify OOM handling in network hashtables 2025-04-11 16:29:51 -04:00
netport.c selinux: drop copy-paste comment 2025-04-11 16:32:07 -04:00
nlmsgtab.c net: Retire DCCP socket. 2025-04-11 18:58:10 -07:00
selinuxfs.c selinux: fix sel_read_bool() allocation and error handling 2025-09-03 17:34:32 -04:00
status.c
xfrm.c selinux: fix selinux_xfrm_alloc_user() to set correct ctx_len 2025-06-16 19:02:22 -04:00