diff options
author | James Morris <jmorris@namei.org> | 2009-01-28 20:08:34 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-01-29 16:55:07 -0500 |
commit | dd4907a6d4e038dc65839fcd4030ebefe2f5f439 (patch) | |
tree | 1ad9f9754d9b929f7003cdf1a30a2f8ee5b04e3a /security/selinux | |
parent | e4737250b751b4e0e802adae9a4d3ae0227b580b (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/selinux')
-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) | |||
2655 | 2655 | ||
2656 | static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | 2656 | static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) |
2657 | { | 2657 | { |
2658 | int rc; | ||
2659 | |||
2660 | rc = secondary_ops->inode_mknod(dir, dentry, mode, dev); | ||
2661 | if (rc) | ||
2662 | return rc; | ||
2663 | |||
2664 | return may_create(dir, dentry, inode_mode_to_security_class(mode)); | 2658 | return may_create(dir, dentry, inode_mode_to_security_class(mode)); |
2665 | } | 2659 | } |
2666 | 2660 | ||