err = ipc_has_perm(&msq->q_perm, SECCLASS_MSGQ, perms);
err = ipc_has_perm(&msq->q_perm, perms);
static int selinux_msg_queue_msgctl(struct msg_queue *msq, int cmd){	int err;	int perms;	switch(cmd) {	case IPC_INFO:	case MSG_INFO:		/* No specific object, just general system-wide information. */		return task_has_system(current, SYSTEM__IPC_INFO);	case IPC_STAT:	case MSG_STAT:		perms = MSGQ__GETATTR | MSGQ__ASSOCIATE;		break;	case IPC_SET:		perms = MSGQ__SETATTR;		break;	case IPC_RMID:		perms = MSGQ__DESTROY;		break;	default:		return 0;	}	err = ipc_has_perm(&msq->q_perm, SECCLASS_MSGQ, perms);	return err;}