Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef935b91 authored by James Morris's avatar James Morris
Browse files

selinux: remove secondary ops call to sb_mount



Remove secondary ops call to sb_mount, which is
a noop in capabilities.

Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
Acked-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent 5565b0b8
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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,