Skip to content

Commit

Permalink
Merge tag 'landlock-6.8-rc7' of git://git.kernel.org/pub/scm/linux/ke…
Browse files Browse the repository at this point in the history
…rnel/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
  • Loading branch information
torvalds committed Feb 29, 2024
2 parents 805d849 + d9818b3 commit d4f76f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/landlock/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@ static int current_check_refer_path(struct dentry *const old_dentry,
bool allow_parent1, allow_parent2;
access_mask_t access_request_parent1, access_request_parent2;
struct path mnt_dir;
layer_mask_t layer_masks_parent1[LANDLOCK_NUM_ACCESS_FS],
layer_masks_parent2[LANDLOCK_NUM_ACCESS_FS];
layer_mask_t layer_masks_parent1[LANDLOCK_NUM_ACCESS_FS] = {},
layer_masks_parent2[LANDLOCK_NUM_ACCESS_FS] = {};

if (!dom)
return 0;
Expand Down

0 comments on commit d4f76f8

Please sign in to comment.