From: James Morris Date: Thu, 29 Jan 2009 01:00:08 +0000 (+1100) Subject: selinux: remove secondary ops call to inode_unlink X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4737250b751b4e0e802adae9a4d3ae0227b580b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Eric Paris Signed-off-by: James Morris --- 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); }