summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-01-29 02:15:59 +0100
committerJames Morris <jmorris@namei.org>2009-01-29 22:55:10 +0100
commit438add6b32d9295db6e3ecd4d9e137086ec5b5d9 (patch)
tree70658fa14a51af66a3359e306d263955d3eaf13f
parentselinux: remove secondary ops call to inode_permission (diff)
downloadlinux-438add6b32d9295db6e3ecd4d9e137086ec5b5d9.tar.xz
linux-438add6b32d9295db6e3ecd4d9e137086ec5b5d9.zip
selinux: remove secondary ops call to inode_setattr
Remove secondary ops call to inode_setattr, which is a noop in capabilities. Acked-by: Serge Hallyn <serue@us.ibm.com> Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
-rw-r--r--security/selinux/hooks.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 7e90c9e58657..08b506846a1f 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2694,11 +2694,6 @@ static int selinux_inode_permission(struct inode *inode, int mask)
static int selinux_inode_setattr(struct dentry *dentry, struct iattr *iattr)
{
const struct cred *cred = current_cred();
- int rc;
-
- rc = secondary_ops->inode_setattr(dentry, iattr);
- if (rc)
- return rc;
if (iattr->ia_valid & ATTR_FORCE)
return 0;