return ipc_has_perm(&shp->shm_perm, SECCLASS_SHM, perms); 
return ipc_has_perm(&shp->shm_perm, perms); 
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;	else		perms = SHM__READ | SHM__WRITE;	return ipc_has_perm(&shp->shm_perm, SECCLASS_SHM, perms);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6af963f1d6789ef20abca5696cd52a758b396e52/hooks.c/buggy/security/selinux/hooks.c