Skip to content

Commit

Permalink
selinux: remove secondary ops call to shm_shmat
Browse files Browse the repository at this point in the history
Remove secondary ops call to shm_shmat, 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 5c4054c commit 95c1490
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 @@ -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;
Expand Down

0 comments on commit 95c1490

Please sign in to comment.