projects
/
wrapfs-3.6.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd400aa
)
Wrapfs: update ->permission prototye and code for new iperm flag
author
Erez Zadok
<ezk@cs.sunysb.edu>
Sun, 6 Mar 2011 21:23:16 +0000
(16:23 -0500)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Sun, 26 May 2013 03:52:22 +0000
(23:52 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/wrapfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/wrapfs/inode.c
b/fs/wrapfs/inode.c
index eba0883c046292ab6fa56e0f05e50c1d97d57c24..9fc3c66d751693a380c2cb81c7a21cc8af13101f 100644
(file)
--- a/
fs/wrapfs/inode.c
+++ b/
fs/wrapfs/inode.c
@@
-407,11
+407,14
@@
static void wrapfs_put_link(struct dentry *dentry, struct nameidata *nd,
kfree(buf);
}
-static int wrapfs_permission(struct inode *inode, int mask)
+static int wrapfs_permission(struct inode *inode, int mask
, unsigned int flags
)
{
struct inode *lower_inode;
int err;
+ if (flags & IPERM_FLAG_RCU)
+ return -ECHILD;
+
lower_inode = wrapfs_lower_inode(inode);
err = inode_permission(lower_inode, mask);
return err;