Thread (24 messages) 24 messages, 5 authors, 2023-10-06

Re: [PATCH v5 2/5] security: Count the LSMs enabled at compile time

From: Kees Cook <hidden>
Date: 2023-09-29 00:37:05
Also in: bpf

On Thu, Sep 28, 2023 at 10:24:07PM +0200, KP Singh wrote:
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.

Suggested-by: Kui-Feng Lee <redacted>
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: KP Singh <kpsingh@kernel.org>
Thanks for doing the refactor with the existing macro!

Reviewed-by: Kees Cook <redacted>

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help