diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-13 05:26:37 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-07-13 05:26:37 -0400 |
commit | bb458c644a59dbba3a1fe59b27106c5e68e1c4bd (patch) | |
tree | b0f3b51fc5cbd044b076cb0a1fec43ca62f2b7f5 /arch | |
parent | 4fbeb19d53cc3ef2da4bd1fd89a5dc9ac04add3a (diff) |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/alpha/include/uapi/asm/fcntl.h | 2 | ||||
-rw-r--r-- | arch/parisc/include/uapi/asm/fcntl.h | 2 | ||||
-rw-r--r-- | arch/sparc/include/uapi/asm/fcntl.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/arch/alpha/include/uapi/asm/fcntl.h b/arch/alpha/include/uapi/asm/fcntl.h index dfdadb0b4bef..09f49a6b87d1 100644 --- a/arch/alpha/include/uapi/asm/fcntl.h +++ b/arch/alpha/include/uapi/asm/fcntl.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #define O_SYNC (__O_SYNC|O_DSYNC) | 32 | #define O_SYNC (__O_SYNC|O_DSYNC) |
33 | 33 | ||
34 | #define O_PATH 040000000 | 34 | #define O_PATH 040000000 |
35 | #define O_TMPFILE 0100000000 | 35 | #define __O_TMPFILE 0100000000 |
36 | 36 | ||
37 | #define F_GETLK 7 | 37 | #define F_GETLK 7 |
38 | #define F_SETLK 8 | 38 | #define F_SETLK 8 |
diff --git a/arch/parisc/include/uapi/asm/fcntl.h b/arch/parisc/include/uapi/asm/fcntl.h index cc61c475f277..34a46cbc76ed 100644 --- a/arch/parisc/include/uapi/asm/fcntl.h +++ b/arch/parisc/include/uapi/asm/fcntl.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #define O_INVISIBLE 004000000 /* invisible I/O, for DMAPI/XDSM */ | 20 | #define O_INVISIBLE 004000000 /* invisible I/O, for DMAPI/XDSM */ |
21 | 21 | ||
22 | #define O_PATH 020000000 | 22 | #define O_PATH 020000000 |
23 | #define O_TMPFILE 040000000 | 23 | #define __O_TMPFILE 040000000 |
24 | 24 | ||
25 | #define F_GETLK64 8 | 25 | #define F_GETLK64 8 |
26 | #define F_SETLK64 9 | 26 | #define F_SETLK64 9 |
diff --git a/arch/sparc/include/uapi/asm/fcntl.h b/arch/sparc/include/uapi/asm/fcntl.h index d73e5e008b0d..7e8ace5bf760 100644 --- a/arch/sparc/include/uapi/asm/fcntl.h +++ b/arch/sparc/include/uapi/asm/fcntl.h | |||
@@ -35,7 +35,7 @@ | |||
35 | #define O_SYNC (__O_SYNC|O_DSYNC) | 35 | #define O_SYNC (__O_SYNC|O_DSYNC) |
36 | 36 | ||
37 | #define O_PATH 0x1000000 | 37 | #define O_PATH 0x1000000 |
38 | #define O_TMPFILE 0x2000000 | 38 | #define __O_TMPFILE 0x2000000 |
39 | 39 | ||
40 | #define F_GETOWN 5 /* for sockets. */ | 40 | #define F_GETOWN 5 /* for sockets. */ |
41 | #define F_SETOWN 6 /* for sockets. */ | 41 | #define F_SETOWN 6 /* for sockets. */ |