mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
don't leak O_CLOEXEC into ->f_flags
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ddd3e0771b
commit
c6f3d81115
2 changed files with 2 additions and 2 deletions
|
|
@ -814,7 +814,7 @@ static inline int build_open_flags(int flags, umode_t mode, struct open_flags *o
|
|||
op->mode = 0;
|
||||
|
||||
/* Must never be set by userspace */
|
||||
flags &= ~FMODE_NONOTIFY;
|
||||
flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC;
|
||||
|
||||
/*
|
||||
* O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only
|
||||
|
|
|
|||
Loading…
Reference in a new issue