LSM: Maintain a table of LSM attribute data
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 12 Sep 2023 20:56:47 +0000 (13:56 -0700)
committerPaul Moore <paul@paul-moore.com>
Mon, 13 Nov 2023 03:54:42 +0000 (22:54 -0500)
commit9285c5ad9d00abfe0f4e2ce4039c8127e7a09738
treee4c937bc059f98074e107bea33a88bfe4acc2b8c
parentf3b8788cde61b02f1e6c202f8fac4360e6adbafc
LSM: Maintain a table of LSM attribute data

As LSMs are registered add their lsm_id pointers to a table.
This will be used later for attribute reporting.

Determine the number of possible security modules based on
their respective CONFIG options. This allows the number to be
known at build time. This allows data structures and tables
to use the constant.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
Reviewed-by: Mickael Salaun <mic@digikod.net>
Reviewed-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/security.h
security/security.c