diff options
author | James Morris <jmorris@namei.org> | 2009-01-29 04:00:08 +0300 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-01-30 00:55:06 +0300 |
commit | e4737250b751b4e0e802adae9a4d3ae0227b580b (patch) | |
tree | 98b121f355b548e02369cebfc8d871a805724d00 /security/selinux | |
parent | efdfac437607e4acfed66c383091a376525eaec4 (diff) | |
download | linux-e4737250b751b4e0e802adae9a4d3ae0227b580b.tar.xz |
selinux: remove secondary ops call to inode_unlink
Remove secondary ops call to inode_unlink, 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 | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index da0e523157d0..ec834dc0b414 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -2635,11 +2635,6 @@ static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, stru static int selinux_inode_unlink(struct inode *dir, struct dentry *dentry) { - int rc; - - rc = secondary_ops->inode_unlink(dir, dentry); - if (rc) - return rc; return may_link(dir, dentry, MAY_UNLINK); } |