]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
landlock: Fix wrong type usage
authorTingmao Wang <m@maowtm.org>
Sat, 6 Dec 2025 17:11:06 +0000 (17:11 +0000)
committerMickaël Salaün <mic@digikod.net>
Fri, 26 Dec 2025 19:38:59 +0000 (20:38 +0100)
I think, based on my best understanding, that this type is likely a typo
(even though in the end both are u16)

Signed-off-by: Tingmao Wang <m@maowtm.org>
Fixes: 2fc80c69df82 ("landlock: Log file-related denials")
Reviewed-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/7339ad7b47f998affd84ca629a334a71f913616d.1765040503.git.m@maowtm.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
security/landlock/audit.c

index c52d079cdb77ba5f0ebf1357e607dc7fedce930e..e899995f1fd5955c2438d361d6c6ce15a7f6a714 100644 (file)
@@ -191,7 +191,7 @@ static size_t get_denied_layer(const struct landlock_ruleset *const domain,
        long youngest_layer = -1;
 
        for_each_set_bit(access_bit, &access_req, layer_masks_size) {
-               const access_mask_t mask = (*layer_masks)[access_bit];
+               const layer_mask_t mask = (*layer_masks)[access_bit];
                long layer;
 
                if (!mask)