aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2009-01-29 12:08:34 +1100
committerJames Morris <jmorris@namei.org>2009-01-30 08:55:07 +1100
commitdd4907a6d4e038dc65839fcd4030ebefe2f5f439 (patch)
tree1ad9f9754d9b929f7003cdf1a30a2f8ee5b04e3a /security
parente4737250b751b4e0e802adae9a4d3ae0227b580b (diff)
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 ec834dc0b41..03621928f1b 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));
}