Skip to content

Commit 29fbfa4

Browse files
micromaomaol0kod
authored andcommitted
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: 2fc80c6 ("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>
1 parent e4aa446 commit 29fbfa4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

security/landlock/audit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static size_t get_denied_layer(const struct landlock_ruleset *const domain,
191191
long youngest_layer = -1;
192192

193193
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];
195195
long layer;
196196

197197
if (!mask)

0 commit comments

Comments
 (0)