aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorKP Singh <[email protected]>2024-08-16 17:43:06 +0200
committerPaul Moore <[email protected]>2024-08-22 12:23:47 -0400
commitd51e783c17bab0c139bf78d6bd9d1f66673f7903 (patch)
tree63a687b2677e5079ac9d3c5970d57df0a8eb87d9 /lib/crypto/mpi/mpi-sub-ui.c
parent7cff549daa67c7549c5a8688674cea2df8c2ec80 (diff)
lsm: count the LSMs enabled at compile time
These macros are a clever trick to determine a count of the number of LSMs that are enabled in the config to ascertain the maximum number of static calls that need to be configured per LSM hook. Without this one would need to generate static calls for the total number of LSMs in the kernel (even if they are not compiled) times the number of LSM hooks which ends up being quite wasteful. Tested-by: Guenter Roeck <[email protected]> Suggested-by: Kui-Feng Lee <[email protected]> Suggested-by: Andrii Nakryiko <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Casey Schaufler <[email protected]> Reviewed-by: John Johansen <[email protected]> Acked-by: Casey Schaufler <[email protected]> Acked-by: Song Liu <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Nacked-by: Tetsuo Handa <[email protected]> Signed-off-by: KP Singh <[email protected]> [PM: added IPE to the count during merge] Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions