Skip to content

Commit

Permalink
selinux: remove secondary ops call to sb_mount
Browse files Browse the repository at this point in the history
Remove secondary ops call to sb_mount, 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 5565b0b commit ef935b9
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 @@ -2531,11 +2531,6 @@ static int selinux_mount(char *dev_name,
void *data)
{
const struct cred *cred = current_cred();
int rc;

rc = secondary_ops->sb_mount(dev_name, path, type, flags, data);
if (rc)
return rc;

if (flags & MS_REMOUNT)
return superblock_has_perm(cred, path->mnt->mnt_sb,
Expand Down

0 comments on commit ef935b9

Please sign in to comment.