]> git.baikalelectronics.ru Git - kernel.git/commit
Safer ABI for O_TMPFILE
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Jul 2013 09:26:37 +0000 (13:26 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Jul 2013 09:26:37 +0000 (13:26 +0400)
commit7c9a0ca77fd96866cf135333d7c366b108baad85
treeb0f3b51fc5cbd044b076cb0a1fec43ca62f2b7f5
parent846c2c118cc13ccd075e23e1fd0e6f98bab3e4cd
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...

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