err = ipc_has_perm(&shp->shm_perm, SECCLASS_SHM, perms); 
err = ipc_has_perm(&shp->shm_perm, perms); 
static int selinux_shm_shmctl(struct shmid_kernel *shp, int cmd){	int perms;	int err;	switch(cmd) {	case IPC_INFO:	case SHM_INFO:		/* No specific object, just general system-wide information. */		return task_has_system(current, SYSTEM__IPC_INFO);	case IPC_STAT:	case SHM_STAT:		perms = SHM__GETATTR | SHM__ASSOCIATE;		break;	case IPC_SET:		perms = SHM__SETATTR;		break;	case SHM_LOCK:	case SHM_UNLOCK:		perms = SHM__LOCK;		break;	case IPC_RMID:		perms = SHM__DESTROY;		break;	default:		return 0;	}	err = ipc_has_perm(&shp->shm_perm, SECCLASS_SHM, perms);	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6af963f1d6789ef20abca5696cd52a758b396e52/hooks.c/buggy/security/selinux/hooks.c