mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
ANDROID: fsnotify: Fix Open Check
The previous version would miss if FS_OPEN_EXEC was set.
Change-Id: I52d55bed2ca029f8fae8576f831a0621f2d02804
Fixes: b99f858e42 ("ANDROID: fsnotify: Notify lower fs of open")
Bug: 70706497
Signed-off-by: Daniel Rosenberg <drosen@google.com>
This commit is contained in:
@@ -90,7 +90,7 @@ static inline int fsnotify_file(struct file *file, __u32 mask)
|
||||
/*
|
||||
* Open calls notify early on, so lower file system must be notified
|
||||
*/
|
||||
if (mask == FS_OPEN) {
|
||||
if (mask & FS_OPEN) {
|
||||
if (path->dentry->d_op &&
|
||||
path->dentry->d_op->d_canonical_path) {
|
||||
struct path lower_path;
|
||||
|
||||
Reference in New Issue
Block a user