/netbsd/sys/kern/ |
H A D | sysv_msg.c | 161 msqs[i].msq_u.msg_perm._seq = 0; in msginit() 294 new_msqs[i].msq_u.msg_perm._seq = 0; in msgrealloc() 557 msqptr->msg_perm.uid = msqbuf->msg_perm.uid; in msgctl1() 558 msqptr->msg_perm.gid = msqbuf->msg_perm.gid; in msgctl1() 559 msqptr->msg_perm.mode = (msqptr->msg_perm.mode & ~0777) | in msgctl1() 560 (msqbuf->msg_perm.mode & 0777); in msgctl1() 571 msqbuf->msg_perm = msqptr->msg_perm; in msgctl1() 572 msqbuf->msg_perm.mode &= 0777; in msgctl1() 616 msqptr->msg_perm._key == key) in sys_msgget() 657 msqptr->msg_perm._key = key; in sys_msgget() [all …]
|
/netbsd/sys/compat/sys/ |
H A D | msg.h | 30 struct ipc_perm14 msg_perm; /* msg queue permission bits */ member 48 struct ipc_perm msg_perm; /* operation permission structure */ member 68 struct ipc_perm_sysctl msg_perm; member 95 msqbuf->msg_perm = omsqbuf->msg_perm; in __msqid_ds13_to_native() 113 omsqbuf->msg_perm = msqbuf->msg_perm; in __native_to_msqid_ds13() 138 __ipc_perm14_to_native(&omsqbuf->msg_perm, &msqbuf->msg_perm); in __msqid_ds14_to_native() 156 __native_to_ipc_perm14(&msqbuf->msg_perm, &omsqbuf->msg_perm); in __native_to_msqid_ds14()
|
/netbsd/sys/sys/ |
H A D | msg.h | 79 struct ipc_perm msg_perm; /* operation permission structure */ member 120 struct ipc_perm_sysctl msg_perm; member 160 #define MSQID(ix,ds) ((ix) & 0xffff | (((ds).msg_perm._seq << 16) & 0xffff0000)) 185 SYSCTL_FILL_PERM((src).msg_perm, (dst).msg_perm); \
|
/netbsd/tests/kernel/ |
H A D | t_sysv.c | 220 m_ds.msg_perm.mode = (m_ds.msg_perm.mode & ~0777) | 0600; in ATF_TC_BODY() 230 ATF_REQUIRE_MSG((m_ds.msg_perm.mode & 0777) == 0600, in ATF_TC_BODY() 316 mp->msg_perm.uid, mp->msg_perm.gid, in print_msqid_ds() 317 mp->msg_perm.cuid, mp->msg_perm.cgid, in print_msqid_ds() 318 mp->msg_perm.mode & 0777); in print_msqid_ds() 332 ATF_REQUIRE_MSG(mp->msg_perm.uid == uid && mp->msg_perm.cuid == uid, in print_msqid_ds() 335 ATF_REQUIRE_MSG(mp->msg_perm.gid == gid && mp->msg_perm.cgid == gid, in print_msqid_ds() 338 ATF_REQUIRE_MSG((mp->msg_perm.mode & 0777) == mode, "mode mismatch"); in print_msqid_ds()
|
/netbsd/tests/lib/libc/sys/ |
H A D | t_msgget.c | 175 ATF_CHECK(msgds.msg_perm.uid == uid); in ATF_TC_BODY() 176 ATF_CHECK(msgds.msg_perm.gid == gid); in ATF_TC_BODY() 177 ATF_CHECK(msgds.msg_perm.cuid == uid); in ATF_TC_BODY() 178 ATF_CHECK(msgds.msg_perm.cgid == gid); in ATF_TC_BODY() 179 ATF_CHECK(msgds.msg_perm.mode == 0600); in ATF_TC_BODY() 271 ATF_REQUIRE(msgds.msg_perm.mode == mode[i]); in ATF_TC_BODY()
|
H A D | t_msgctl.c | 139 msgds.msg_perm.uid = getuid(); in ATF_TC_BODY() 140 msgds.msg_perm.gid = getgid(); in ATF_TC_BODY() 271 msgds.msg_perm.uid = pw->pw_uid; in ATF_TC_BODY() 276 msgds.msg_perm.uid = getuid(); in ATF_TC_BODY() 277 msgds.msg_perm.gid = pw->pw_gid; in ATF_TC_BODY() 286 msgds.msg_perm.gid = getgid(); in ATF_TC_BODY()
|
/netbsd/usr.bin/ipcs/ |
H A D | ipcs.c | 505 IXSEQ_TO_IPCID(i, msqptr->msg_perm), in msg_sysctl() 506 msqptr->msg_perm._key, in msg_sysctl() 507 msqptr->msg_perm.mode, in msg_sysctl() 508 msqptr->msg_perm.uid, in msg_sysctl() 509 msqptr->msg_perm.gid, in msg_sysctl() 510 msqptr->msg_perm.cuid, in msg_sysctl() 511 msqptr->msg_perm.cgid, in msg_sysctl()
|
/netbsd/sys/compat/netbsd32/ |
H A D | netbsd32_compat_14_sysv.c | 99 netbsd32_ipc_perm14_to_native(&omsqbuf->msg_perm, &msqbuf->msg_perm); in netbsd32_msqid_ds14_to_native() 117 native_to_netbsd32_ipc_perm14(&msqbuf->msg_perm, &omsqbuf->msg_perm); in native_to_netbsd32_msqid_ds14()
|
H A D | netbsd32_conv.h | 618 netbsd32_to_ipc_perm(&ds32p->msg_perm, &dsp->msg_perm); in netbsd32_to_msqid_ds50() 635 netbsd32_to_ipc_perm(&ds32p->msg_perm, &dsp->msg_perm); in netbsd32_to_msqid_ds() 652 netbsd32_from_ipc_perm(&dsp->msg_perm, &ds32p->msg_perm); in netbsd32_from_msqid_ds50() 669 netbsd32_from_ipc_perm(&dsp->msg_perm, &ds32p->msg_perm); in netbsd32_from_msqid_ds()
|
H A D | netbsd32.h | 514 struct netbsd32_ipc_perm msg_perm; /* operation permission structure */ member 533 struct netbsd32_ipc_perm msg_perm; /* operation permission structure */ member 553 struct netbsd32_ipc_perm14 msg_perm; /* msg queue permission bits */ member
|
/netbsd/sys/compat/linux/common/ |
H A D | linux_ipc.c | 317 linux_to_bsd_ipc_perm(&lmp->l_msg_perm, &bmp->msg_perm); in linux_to_bsd_msqid_ds() 333 linux_to_bsd_ipc64_perm(&lmp->l_msg_perm, &bmp->msg_perm); in linux_to_bsd_msqid64_ds() 349 bsd_to_linux_ipc_perm(&bmp->msg_perm, &lmp->l_msg_perm); in bsd_to_linux_msqid_ds() 365 bsd_to_linux_ipc64_perm(&bmp->msg_perm, &lmp->l_msg_perm); in bsd_to_linux_msqid64_ds()
|
/netbsd/sys/compat/linux32/common/ |
H A D | linux32_ipccall.c | 437 linux32_to_bsd_ipc_perm(&lmp->l_msg_perm, &bmp->msg_perm); in linux32_to_bsd_msqid_ds() 452 linux32_to_bsd_ipc64_perm(&lmp->l_msg_perm, &bmp->msg_perm); in linux32_to_bsd_msqid64_ds() 468 bsd_to_linux32_ipc_perm(&bmp->msg_perm, &lmp->l_msg_perm); in bsd_to_linux32_msqid_ds() 484 bsd_to_linux32_ipc64_perm(&bmp->msg_perm, &lmp->l_msg_perm); in bsd_to_linux32_msqid64_ds()
|
/netbsd/usr.bin/ipcrm/ |
H A D | ipcrm.c | 135 (int)IXSEQ_TO_IPCID(i, msgptr->msg_perm)); in msgrmall()
|