landlock: Constify get_mode_access()
authorMickaël Salaün <mic@digikod.net>
Fri, 10 Jan 2025 15:39:14 +0000 (16:39 +0100)
committerMickaël Salaün <mic@digikod.net>
Tue, 14 Jan 2025 10:57:44 +0000 (11:57 +0100)
commit25ccc75f5de6684fd6a497e44297497ccc7e0603
tree569cdb70acf23794614e10c988cbf81980ffaf5c
parent49440290a0935f428a1e43a5ac8dc275a647ff80
landlock: Constify get_mode_access()

Use __attribute_const__ for get_mode_access().

Reviewed-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20250110153918.241810-2-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
security/landlock/fs.c