Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223356
b: refs/heads/master
c: b1085ba
h: refs/heads/master
v: v3
  • Loading branch information
Lino Sanfilippo authored and Eric Paris committed Dec 7, 2010
1 parent c8e8b81 commit 10aee87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 88d60c32765716289abeb362c44adf6c35c6824c
refs/heads/master: b1085ba80cd2784400a7beec3fda5099198ed01c
3 changes: 3 additions & 0 deletions trunk/fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -1748,6 +1748,9 @@ struct file *do_filp_open(int dfd, const char *pathname,
if (!(open_flag & O_CREAT))
mode = 0;

/* Must never be set by userspace */
open_flag &= ~FMODE_NONOTIFY;

/*
* O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only
* check for O_DSYNC if the need any syncing at all we enforce it's
Expand Down
3 changes: 0 additions & 3 deletions trunk/include/linux/fsnotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,6 @@ static inline void fsnotify_open(struct file *file)
if (S_ISDIR(inode->i_mode))
mask |= FS_ISDIR;

/* FMODE_NONOTIFY must never be set from user */
file->f_mode &= ~FMODE_NONOTIFY;

fsnotify_parent(path, NULL, mask);
fsnotify(inode, mask, path, FSNOTIFY_EVENT_PATH, NULL, 0);
}
Expand Down

0 comments on commit 10aee87

Please sign in to comment.