selinux: remove secondary ops call to inode_setattr

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 11:59 am

Gitweb:     http://git.kernel.org/linus/438add6b32d9295db6e3ecd4d9e137086ec5b5d9
Commit:     438add6b32d9295db6e3ecd4d9e137086ec5b5d9
Parent:     188fbcca9dd02f15dcf45cfc51ce0dd6c13993f6
Author:     James Morris <jmorris@namei.org>
AuthorDate: Thu Jan 29 12:15:59 2009 +1100
Committer:  James Morris <jmorris@namei.org>
CommitDate: Fri Jan 30 08:55:10 2009 +1100

    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>
---
 security/selinux/hooks.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 7e90c9e..08b5068 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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
selinux: remove secondary ops call to inode_setattr, Linux Kernel Mailing ..., (Thu Mar 26, 11:59 am)