summaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-01-29 02:10:56 +0100
committerJames Morris <jmorris@namei.org>2009-01-29 22:55:08 +0100
commitf51115b9ab5b9cfd0b7be1cce75afbf3ffbcdd87 (patch)
treebc93812358e9a76c24ca970224fcd8298fe8b80c /security/selinux
parentselinux: remove secondary ops call to inode_mknod (diff)
downloadlinux-f51115b9ab5b9cfd0b7be1cce75afbf3ffbcdd87.tar.xz
linux-f51115b9ab5b9cfd0b7be1cce75afbf3ffbcdd87.zip
selinux: remove secondary ops call to inode_follow_link
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>
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/hooks.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 03621928f1b2..67291a385c75 100644
--- 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);
}