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

Commit 95c14904 authored by James Morris's avatar James Morris
Browse files

selinux: remove secondary ops call to shm_shmat



Remove secondary ops call to shm_shmat, 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 5c4054cc
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -5113,11 +5113,6 @@ static int selinux_shm_shmat(struct shmid_kernel *shp,
			     char __user *shmaddr, int shmflg)
{
	u32 perms;
	int rc;

	rc = secondary_ops->shm_shmat(shp, shmaddr, shmflg);
	if (rc)
		return rc;

	if (shmflg & SHM_RDONLY)
		perms = SHM__READ;