selinux: remove secondary ops call to inode_mknod
authorJames Morris <jmorris@namei.org>
Thu, 29 Jan 2009 01:08:34 +0000 (12:08 +1100)
committerJames Morris <jmorris@namei.org>
Thu, 29 Jan 2009 21:55:07 +0000 (08:55 +1100)
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

index ec834dc0b4143d8216378a95be64d2e9d4cd34d2..03621928f1b281e6d268d49313ed4792b4f109d0 100644 (file)
@@ -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));
 }