Skip to content

Commit

Permalink
selinux: remove secondary ops call to sb_umount
Browse files Browse the repository at this point in the history
Remove secondary ops call to sb_umount, 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 ef935b9 commit 97422ab
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 @@ -2543,11 +2543,6 @@ static int selinux_mount(char *dev_name,
static int selinux_umount(struct vfsmount *mnt, int flags)
{
const struct cred *cred = current_cred();
int rc;

rc = secondary_ops->sb_umount(mnt, flags);
if (rc)
return rc;

return superblock_has_perm(cred, mnt->mnt_sb,
FILESYSTEM__UNMOUNT, NULL);
Expand Down

0 comments on commit 97422ab

Please sign in to comment.