Safer ABI for O_TMPFILE
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Jul 2013 09:26:37 +0000 (13:26 +0400)
committerStricted <info@stricted.net>
Tue, 6 Aug 2019 11:33:34 +0000 (11:33 +0000)
commit9a612da4ae515b488836968261c8c4233779bda3
tree98585a5c85defb936f5a52ce371cf6f969e62bc6
parentaa8cc8ee6dd527b0d113f3acf9832d3589ca00ab
Safer ABI for O_TMPFILE

[suggested by Rasmus Villemoes] make O_DIRECTORY | O_RDWR part of O_TMPFILE;
that will fail on old kernels in a lot more cases than what I came up with.
And make sure O_CREAT doesn't get there...

Change-Id: I4818563d79ca1abf9ea99f5ccea9317eb2f3b678
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/alpha/include/uapi/asm/fcntl.h
arch/parisc/include/uapi/asm/fcntl.h
arch/sparc/include/uapi/asm/fcntl.h
fs/namei.c
fs/open.c
include/uapi/asm-generic/fcntl.h