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:
Daniel Rosenberg
2022-01-13 12:53:05 -08:00
parent b99f858e42
commit c9c83164bf

View File

@@ -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;