Skip to content

Commit

Permalink
selinux: remove secondary ops call to inode_unlink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Morris committed Jan 29, 2009
1 parent efdfac4 commit e473725
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e473725

Please sign in to comment.