diff options
author | James Morris <jmorris@namei.org> | 2009-01-29 04:08:34 +0300 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-01-30 00:55:07 +0300 |
commit | dd4907a6d4e038dc65839fcd4030ebefe2f5f439 (patch) | |
tree | 1ad9f9754d9b929f7003cdf1a30a2f8ee5b04e3a /security | |
parent | e4737250b751b4e0e802adae9a4d3ae0227b580b (diff) | |
download | linux-dd4907a6d4e038dc65839fcd4030ebefe2f5f439.tar.xz |
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.c | 6 |
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)); } |