summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorTingmao Wang <m@maowtm.org>2025-12-06 17:11:06 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-23 11:21:22 +0100
commitf73f911a4cdf04d8a76181d8ce4765cf195c5527 (patch)
tree7c9eba7e50dad0af299688ccfb894a2976d13059 /security
parenta45001796aa004025c7c352c42362582a79f595d (diff)
downloadlinux-f73f911a4cdf04d8a76181d8ce4765cf195c5527.tar.gz
linux-f73f911a4cdf04d8a76181d8ce4765cf195c5527.tar.bz2
linux-f73f911a4cdf04d8a76181d8ce4765cf195c5527.zip
landlock: Fix wrong type usage
[ Upstream commit 29fbfa46e4287c596bdc77e2c599e3a1bbf8bb67 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security')
-rw-r--r--security/landlock/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/landlock/audit.c b/security/landlock/audit.c
index c52d079cdb77..e899995f1fd5 100644
--- a/security/landlock/audit.c
+++ b/security/landlock/audit.c
@@ -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)