fs: completely ignore unknown open flags
authorChristoph Hellwig <hch@lst.de>
Thu, 27 Apr 2017 07:42:25 +0000 (09:42 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 27 Apr 2017 09:13:04 +0000 (05:13 -0400)
commit629e014bb8349fcf7c1e4df19a842652ece1c945
tree10d1c47fe1c0a4455671e46ca57dcec0615ce7a0
parent80f18379a7c350c011d30332658aa15fe49a8fa5
fs: completely ignore unknown open flags

Currently we just stash anything we got into file->f_flags, and the
report it in fcntl(F_GETFD).  This patch just clears out all unknown
flags so that we don't pass them to the fs or report them.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/open.c