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>
Showing
- arch/alpha/include/uapi/asm/fcntl.h 1 addition, 1 deletionarch/alpha/include/uapi/asm/fcntl.h
- arch/parisc/include/uapi/asm/fcntl.h 1 addition, 1 deletionarch/parisc/include/uapi/asm/fcntl.h
- arch/sparc/include/uapi/asm/fcntl.h 1 addition, 1 deletionarch/sparc/include/uapi/asm/fcntl.h
- fs/namei.c 1 addition, 1 deletionfs/namei.c
- fs/open.c 2 additions, 2 deletionsfs/open.c
- include/uapi/asm-generic/fcntl.h 6 additions, 2 deletionsinclude/uapi/asm-generic/fcntl.h
Please register or sign in to comment