selinux: remove secondary ops call to sb_mount
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>
This commit is contained in:
parent
5565b0b865
commit
ef935b9136
1 changed files with 0 additions and 5 deletions
|
|
@ -2531,11 +2531,6 @@ static int selinux_mount(char *dev_name,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
const struct cred *cred = current_cred();
|
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)
|
if (flags & MS_REMOUNT)
|
||||||
return superblock_has_perm(cred, path->mnt->mnt_sb,
|
return superblock_has_perm(cred, path->mnt->mnt_sb,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue