Skip to content

Commit

Permalink
selinux: remove secondary ops call to inode_mknod
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Morris committed Jan 29, 2009
1 parent e473725 commit dd4907a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2655,12 +2655,6 @@ static int selinux_inode_rmdir(struct inode *dir, struct dentry *dentry)

static int selinux_inode_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)
{
int rc;

rc = secondary_ops->inode_mknod(dir, dentry, mode, dev);
if (rc)
return rc;

return may_create(dir, dentry, inode_mode_to_security_class(mode));
}

Expand Down

0 comments on commit dd4907a

Please sign in to comment.