projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd4907a
)
selinux: remove secondary ops call to inode_follow_link
author
James Morris
<jmorris@namei.org>
Thu, 29 Jan 2009 01:10:56 +0000
(12:10 +1100)
committer
James Morris
<jmorris@namei.org>
Thu, 29 Jan 2009 21:55:08 +0000
(08:55 +1100)
Remove secondary ops call to inode_follow_link, which is
a noop in capabilities.
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/hooks.c
patch
|
blob
|
blame
|
history
diff --git
a/security/selinux/hooks.c
b/security/selinux/hooks.c
index 03621928f1b281e6d268d49313ed4792b4f109d0..67291a385c755a7cba262499cdc8b8ae860bbc48 100644
(file)
--- a/
security/selinux/hooks.c
+++ b/
security/selinux/hooks.c
@@
-2674,11
+2674,7
@@
static int selinux_inode_readlink(struct dentry *dentry)
static int selinux_inode_follow_link(struct dentry *dentry, struct nameidata *nameidata)
{
const struct cred *cred = current_cred();
- int rc;
- rc = secondary_ops->inode_follow_link(dentry, nameidata);
- if (rc)
- return rc;
return dentry_has_perm(cred, NULL, dentry, FILE__READ);
}