selinux: remove secondary ops call to inode_mknod

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

    selinux: remove secondary ops call to inode_mknod
    
    Remove secondary ops call to inode_mknod, 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 |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index ec834dc..0362192 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2655,12 +2655,6 @@ static int selinux_inode_rmdir(struct inode *dir, struct dentry *dentry)
 
 static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
 {
-	int rc;
-
-	rc = secondary_ops->inode_mknod(dir, dentry, mode, dev);
-	if (rc)
-		return rc;
-
 	return may_create(dir, dentry, inode_mode_to_security_class(mode));
 }
 
--
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_mknod, Linux Kernel Mailing ..., (Thu Mar 26, 11:59 am)