aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkkconfigsymbols.py
diff options
authorkpsingh <kpsingh@kernel.org>2024-04-26 21:36:56 +0200
committerkpsingh <kpsingh@kernel.org>2024-04-26 21:44:09 +0200
commit06bb8ee551361059ecddd590b22e22143b4def41 (patch)
tree081eb3cecb3e9f1711ae32641f36584b7804eea1 /scripts/checkkconfigsymbols.py
parent2882213a96f2dfd572afdc46a9238e7b1cf88eb7 (diff)
downloadlinux-master.tar.gz
security: Update non standard hooks to use static callsHEADmaster
There are some LSM hooks which do not use the common pattern followed by other LSM hooks and thus cannot use call_{int, void}_hook macros and instead use lsm_for_each_hook macro which still results in indirect call. There is one additional generalizable pottern where a hook matching an lsmid is called and the indirect calls for these are addressed with the newly added call_hook_with_lsmid macro which internally uses an implementation similar to call_int_hook but has an additional check that matches the lsmid. For the generic case the lsm_for_each_hook macro is updated to accept a body for the for loop and this handled all cases except getselfattr which also had to provide a prelude to execute before the callback to the LSM.
Diffstat (limited to 'scripts/checkkconfigsymbols.py')
0 files changed, 0 insertions, 0 deletions