selinux: remove secondary ops call to inode_unlink

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/e4737250b751b4e0e802adae9a4d3ae0227b580b
Commit:     e4737250b751b4e0e802adae9a4d3ae0227b580b
Parent:     efdfac437607e4acfed66c383091a376525eaec4
Author:     James Morris <jmorris@namei.org>
AuthorDate: Thu Jan 29 12:00:08 2009 +1100
Committer:  James Morris <jmorris@namei.org>
CommitDate: Fri Jan 30 08:55:06 2009 +1100

    selinux: remove secondary ops call to inode_unlink
    
    Remove secondary ops call to inode_unlink, 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 da0e523..ec834dc 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2635,11 +2635,6 @@ static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, stru
 
 static int selinux_inode_unlink(struct inode *dir, struct dentry *dentry)
 {
-	int rc;
-
-	rc = secondary_ops->inode_unlink(dir, dentry);
-	if (rc)
-		return rc;
 	return may_link(dir, dentry, MAY_UNLINK);
 }
 
--
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_unlink, Linux Kernel Mailing ..., (Thu Mar 26, 11:59 am)