projects
/
wrapfs-3.4.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9875b1
)
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>
Tue, 27 Dec 2016 03:11:30 +0000
(22:11 -0500)
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 bd5d5ab57b18cf2afd393dd2b6a3fb8945b69073..438a5c542102c14d35261553b1c9ebf18f96c52d 100644
(file)
--- a/
fs/wrapfs/inode.c
+++ b/
fs/wrapfs/inode.c
@@
-404,11
+404,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;