Files
linux/security/landlock
Günther Noack a46e32db1f landlock: Clarify BUILD_BUG_ON check in scoping logic
The BUILD_BUG_ON check in domain_is_scoped() and
unmask_scoped_access() should check that the loop that counts down
client_layer finishes.  We therefore check that the numbers
LANDLOCK_MAX_NUM_LAYERS-1 and -1 are both representable by that
integer.  If they are representable, the numbers in between are
representable too, and the loop finishes.

Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20260327164838.38231-6-gnoack3000@gmail.com
Signed-off-by: Mickaël Salaün <mic@digikod.net>
2026-04-07 18:51:07 +02:00
..
2025-03-26 13:59:34 +01:00
2024-02-27 11:21:45 +01:00
2025-03-26 13:59:42 +01:00
2025-03-26 13:59:34 +01:00
2024-02-27 11:21:45 +01:00
2022-05-09 12:31:10 +02:00
2025-03-21 12:12:19 +01:00
2026-04-07 18:51:04 +02:00