Lines Matching refs:msg_perm
156 out->msg_perm = in->msg_perm;
183 out->msg_perm = in->msg_perm;
276 msqids[i].u.msg_perm._seq = 0; /* reset to a known value */
277 msqids[i].u.msg_perm.mode = 0;
385 if (msqptr->u.msg_perm._seq != IPCID_TO_SEQ(uap->msqid)) {
406 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_M)))
454 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_M)))
493 msqptr->u.msg_perm.uid = msqbuf.msg_perm.uid; /* change the owner */
494 msqptr->u.msg_perm.gid = msqbuf.msg_perm.gid; /* change the owner */
495 msqptr->u.msg_perm.mode = (msqptr->u.msg_perm.mode & ~0777) |
496 (msqbuf.msg_perm.mode & 0777);
502 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, IPC_R))) {
561 msqptr->u.msg_perm._key == key)
575 if ((eval = ipcperm(cred, &msqptr->u.msg_perm, msgflg & 0700 ))) {
604 (msqptr->u.msg_perm.mode & MSG_LOCKED) == 0)
617 msqptr->u.msg_perm._key = key;
618 msqptr->u.msg_perm.cuid = kauth_cred_getuid(cred);
619 msqptr->u.msg_perm.uid = kauth_cred_getuid(cred);
620 msqptr->u.msg_perm.cgid = cred->cr_gid;
621 msqptr->u.msg_perm.gid = cred->cr_gid;
622 msqptr->u.msg_perm.mode = (msgflg & 0777);
624 msqptr->u.msg_perm._seq++;
648 *retval = IXSEQ_TO_IPCID(msqid, msqptr->u.msg_perm);
710 if (msqptr->u.msg_perm._seq != IPCID_TO_SEQ(uap->msqid)) {
718 if ((eval = ipcperm(kauth_cred_get(), &msqptr->u.msg_perm, IPC_W))) {
762 if (msqptr->u.msg_perm.mode & MSG_LOCKED) {
811 if ((msqptr->u.msg_perm.mode & MSG_LOCKED) != 0) {
822 msqptr->u.msg_perm.mode |= MSG_LOCKED;
834 msqptr->u.msg_perm.mode &= ~MSG_LOCKED;
869 if (msqptr->u.msg_perm.mode & MSG_LOCKED)
870 panic("msg_perm.mode & MSG_LOCKED");
882 if ((msqptr->u.msg_perm.mode & MSG_LOCKED) != 0)
884 msqptr->u.msg_perm.mode |= MSG_LOCKED;
943 msqptr->u.msg_perm.mode &= ~MSG_LOCKED;
954 msqptr->u.msg_perm.mode &= ~MSG_LOCKED;
988 msqptr->u.msg_perm.mode &= ~MSG_LOCKED;
1004 msqptr->u.msg_perm.mode &= ~MSG_LOCKED;
1125 if (msqptr->u.msg_perm._seq != IPCID_TO_SEQ(uap->msqid)) {
1133 if ((eval = ipcperm(kauth_cred_get(), &msqptr->u.msg_perm, IPC_R))) {
1290 msqptr->u.msg_perm._seq != IPCID_TO_SEQ(uap->msqid)) {