1
From: Andreas Gruenbacher <agruen@suse.de>
2
Subject: Allow permission functions to tell between parent and leaf checks
4
Set the LOOKUP_CONTINUE flag when checking parent permissions. This allows
5
permission functions to tell between parent and leaf checks.
7
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
8
Signed-off-by: John Johansen <jjohansen@suse.de>
12
1 file changed, 2 insertions(+)
16
@@ -1511,6 +1511,8 @@ static inline int may_create(struct inod
21
+ nd->flags |= LOOKUP_CONTINUE;
22
return permission(dir,MAY_WRITE | MAY_EXEC, nd);