Skip to content

Commit d4f76f8

Browse files
committed
Merge tag 'landlock-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
Pull Landlock fix from Mickaël Salaün: "Fix a potential issue when handling inodes with inconsistent properties" * tag 'landlock-6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux: landlock: Fix asymmetric private inodes referring
2 parents 805d849 + d9818b3 commit d4f76f8

File tree

1 file changed

+2
-2
lines changed
  • security/landlock

1 file changed

+2
-2
lines changed

security/landlock/fs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,8 @@ static int current_check_refer_path(struct dentry *const old_dentry,
737737
bool allow_parent1, allow_parent2;
738738
access_mask_t access_request_parent1, access_request_parent2;
739739
struct path mnt_dir;
740-
layer_mask_t layer_masks_parent1[LANDLOCK_NUM_ACCESS_FS],
741-
layer_masks_parent2[LANDLOCK_NUM_ACCESS_FS];
740+
layer_mask_t layer_masks_parent1[LANDLOCK_NUM_ACCESS_FS] = {},
741+
layer_masks_parent2[LANDLOCK_NUM_ACCESS_FS] = {};
742742

743743
if (!dom)
744744
return 0;

0 commit comments

Comments
 (0)