aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-07-16 09:51:03 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2008-07-26 20:53:19 -0400
commit8bb79224b87aab92071e94d46e70bd160d89bf34 (patch)
treedab47cbb434876e5916f18b738ef8bd3fe1e1ce1 /include
parentdb2e747b14991a4c6a5c98b0e5f552a193237c03 (diff)
[PATCH] permission checks for chdir need special treatment only on the last step
... so we ought to pass MAY_CHDIR to vfs_permission() instead of having it triggered on every step of preceding pathname resolution. LOOKUP_CHDIR is killed by that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/namei.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/namei.h b/include/linux/namei.h
index 24d88e98a626..3cf62d26d493 100644
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -55,7 +55,6 @@ enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT, LAST_BIND};
55#define LOOKUP_OPEN (0x0100) 55#define LOOKUP_OPEN (0x0100)
56#define LOOKUP_CREATE (0x0200) 56#define LOOKUP_CREATE (0x0200)
57#define LOOKUP_ACCESS (0x0400) 57#define LOOKUP_ACCESS (0x0400)
58#define LOOKUP_CHDIR (0x0800)
59 58
60extern int __user_walk(const char __user *, unsigned, struct nameidata *); 59extern int __user_walk(const char __user *, unsigned, struct nameidata *);
61extern int __user_walk_fd(int dfd, const char __user *, unsigned, struct nameidata *); 60extern int __user_walk_fd(int dfd, const char __user *, unsigned, struct nameidata *);