projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19272b3
)
landlock: opened file never has a negative dentry
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 28 May 2025 02:39:51 +0000
(22:39 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 17 Jun 2025 22:03:57 +0000
(18:03 -0400)
Reviewed-by: Christian Brauner <brauner@kernel.org>
Acked-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/landlock/syscalls.c
patch
|
blob
|
blame
|
history
diff --git
a/security/landlock/syscalls.c
b/security/landlock/syscalls.c
index 33eafb71e4f31bb2ed396d85bf2e82fb85005fab..0116e9f93ffe30b432a16a48ee341ccb29405963 100644
(file)
--- a/
security/landlock/syscalls.c
+++ b/
security/landlock/syscalls.c
@@
-303,7
+303,6
@@
static int get_path_from_fd(const s32 fd, struct path *const path)
if ((fd_file(f)->f_op == &ruleset_fops) ||
(fd_file(f)->f_path.mnt->mnt_flags & MNT_INTERNAL) ||
(fd_file(f)->f_path.dentry->d_sb->s_flags & SB_NOUSER) ||
- d_is_negative(fd_file(f)->f_path.dentry) ||
IS_PRIVATE(d_backing_inode(fd_file(f)->f_path.dentry)))
return -EBADFD;