diff options
author | Mickaël Salaün <mic@digikod.net> | 2025-01-10 16:39:14 +0100 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2025-01-14 11:57:44 +0100 |
commit | 25ccc75f5de6684fd6a497e44297497ccc7e0603 (patch) | |
tree | 569cdb70acf23794614e10c988cbf81980ffaf5c | |
parent | 49440290a0935f428a1e43a5ac8dc275a647ff80 (diff) |
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>
-rw-r--r-- | security/landlock/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/landlock/fs.c b/security/landlock/fs.c index 7adb25150488..f81d0335b825 100644 --- a/security/landlock/fs.c +++ b/security/landlock/fs.c @@ -932,7 +932,7 @@ static int current_check_access_path(const struct path *const path, return check_access_path(dom, path, access_request); } -static access_mask_t get_mode_access(const umode_t mode) +static __attribute_const__ access_mask_t get_mode_access(const umode_t mode) { switch (mode & S_IFMT) { case S_IFLNK: |