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>
This commit is contained in:
parent
efdfac4376
commit
e4737250b7
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue