diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-08-26 11:01:04 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-09-26 21:10:01 -0400 |
commit | c6f3d81115989e274c42a852222b80d2e14ced6f (patch) | |
tree | 8a0e17df64381ab883acd76f5190b33fc80126ea /fs/open.c | |
parent | ddd3e0771bc7b869c550687c204e21f0155d5496 (diff) |
don't leak O_CLOEXEC into ->f_flags
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/open.c')
-rw-r--r-- | fs/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -814,7 +814,7 @@ static inline int build_open_flags(int flags, umode_t mode, struct open_flags *o | |||
814 | op->mode = 0; | 814 | op->mode = 0; |
815 | 815 | ||
816 | /* Must never be set by userspace */ | 816 | /* Must never be set by userspace */ |
817 | flags &= ~FMODE_NONOTIFY; | 817 | flags &= ~FMODE_NONOTIFY & ~O_CLOEXEC; |
818 | 818 | ||
819 | /* | 819 | /* |
820 | * O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only | 820 | * O_SYNC is implemented as __O_SYNC|O_DSYNC. As many places only |