mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
selinux: remove secondary ops call to shm_shmat
Remove secondary ops call to shm_shmat, which is a noop in capabilities. Acked-by: Serge Hallyn <[email protected]> Acked-by: Eric Paris <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
5c4054ccfa
commit
95c14904b6
1 changed files with 0 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue