linux-kernelorg-stable/security/landlock
Mickaël Salaün 3039ed4327
landlock: Improve bit operations in audit code
Use the BIT() and BIT_ULL() macros in the new audit code instead of
explicit shifts to improve readability.  Use bitmask instead of modulo
operation to simplify code.

Add test_range1_rand15() and test_range2_rand15() KUnit tests to improve
get_id_range() coverage.

Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20250512093732.1408485-1-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2025-05-12 11:38:53 +02:00
..
errata
.kunitconfig
Kconfig
Makefile
access.h
audit.c landlock: Improve bit operations in audit code 2025-05-12 11:38:53 +02:00
audit.h
common.h
cred.c
cred.h
domain.c
domain.h
errata.h
fs.c
fs.h
id.c landlock: Improve bit operations in audit code 2025-05-12 11:38:53 +02:00
id.h
limits.h
net.c
net.h
object.c
object.h
ruleset.c
ruleset.h
setup.c
setup.h
syscalls.c landlock: Improve bit operations in audit code 2025-05-12 11:38:53 +02:00
task.c
task.h