mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
UPSTREAM: 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:
parent
f41257ce1b
commit
711aab4fc8
1 changed files with 2 additions and 0 deletions
|
|
@ -1566,8 +1566,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue