]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit686582a37f9aefcac7a735c714a7ba58016f7b16
tree10d1c47fe1c0a4455671e46ca57dcec0615ce7a0
parent0e7083e0592d7409f15cd92336a2ecccafb5524f
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