Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

landlock: Fix wrong type usage

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>

authored by

Tingmao Wang and committed by
Mickaël Salaün
29fbfa46 e4aa4461

+1 -1
+1 -1
security/landlock/audit.c
··· 191 191 long youngest_layer = -1; 192 192 193 193 for_each_set_bit(access_bit, &access_req, layer_masks_size) { 194 - const access_mask_t mask = (*layer_masks)[access_bit]; 194 + const layer_mask_t mask = (*layer_masks)[access_bit]; 195 195 long layer; 196 196 197 197 if (!mask)