mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
ANDROID: fuse-bpf: Make compile with CONFIG_FUSE but no CONFIG_FUSE_BPF
Fixes: ANDROID: fuse-bpf: Fix perms on readdir Test: Builds with and without CONFIG_FUSE_BPF Bug: 202785178 Signed-off-by: Paul Lawrence <paullawrence@google.com> Change-Id: If8b4603dd6f4bd159bfd68fc61c377dcb62ebcd0
This commit is contained in:
@@ -1576,8 +1576,10 @@ static int fuse_permission(struct inode *inode, int mask)
|
||||
if (!err && !(inode->i_mode & S_IXUGO))
|
||||
return -EACCES;
|
||||
}
|
||||
#ifdef CONFIG_FUSE_BPF
|
||||
} else if (!(mask & MAY_NOT_BLOCK) && fi->backing_inode) {
|
||||
err = fuse_access(inode, mask);
|
||||
#endif
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user