summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-01-29 02:08:34 +0100
committerJames Morris <jmorris@namei.org>2009-01-29 22:55:07 +0100
commitdd4907a6d4e038dc65839fcd4030ebefe2f5f439 (patch)
tree1ad9f9754d9b929f7003cdf1a30a2f8ee5b04e3a /security
parentselinux: remove secondary ops call to inode_unlink (diff)
downloadlinux-dd4907a6d4e038dc65839fcd4030ebefe2f5f439.tar.xz
linux-dd4907a6d4e038dc65839fcd4030ebefe2f5f439.zip
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>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index ec834dc0b414..03621928f1b2 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));
}