diff options
| author | Günther Noack <gnoack3000@gmail.com> | 2026-03-27 17:48:30 +0100 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2026-04-07 18:51:07 +0200 |
| commit | a46e32db1fb7acac49a35773345d4bcf343847f5 (patch) | |
| tree | 57c2371e0f8cc6614a5df559188691764d1c51e3 /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | ae97330d1bd6a97646c2842d117577236cb40913 (diff) | |
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>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
