mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 17:24:17 +08: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 <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
5c4054ccfa
commit
95c14904b6
@ -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 New Issue
Block a user