| /freebsd-12-stable/tools/regression/sysvmsg/ |
| D | msgtest.c | 140 m_ds.msg_perm.mode = (m_ds.msg_perm.mode & ~0777) | 0600; in main() 150 if ((m_ds.msg_perm.mode & 0777) != 0600) in main() 266 mp->msg_perm.uid, mp->msg_perm.gid, in print_msqid_ds() 267 mp->msg_perm.cuid, mp->msg_perm.cgid, in print_msqid_ds() 268 mp->msg_perm.mode & 0777); in print_msqid_ds() 282 if (mp->msg_perm.uid != uid || mp->msg_perm.cuid != uid) in print_msqid_ds() 285 if (mp->msg_perm.gid != gid || mp->msg_perm.cgid != gid) in print_msqid_ds() 288 if ((mp->msg_perm.mode & 0777) != mode) in print_msqid_ds()
|
| /freebsd-12-stable/sys/kern/ |
| D | sysv_msg.c | 152 #define MSQID(ix,ds) ((ix) & 0xffff | (((ds).msg_perm.seq << 16) & 0xffff0000)) 274 msqids[i].u.msg_perm.seq = 0; /* reset to a known value */ in msginit() 275 msqids[i].u.msg_perm.mode = 0; in msginit() 333 (msqkptr->u.msg_perm.mode & MSG_LOCKED) != 0) in msgunload() 529 if (msqkptr->u.msg_perm.seq != IPCID_TO_SEQ(msqid)) { in kern_msgctl() 557 if ((error = ipcperm(td, &msqkptr->u.msg_perm, IPC_M))) in kern_msgctl() 584 AUDIT_ARG_SVIPC_PERM(&msqbuf->msg_perm); in kern_msgctl() 585 if ((error = ipcperm(td, &msqkptr->u.msg_perm, IPC_M))) in kern_msgctl() 602 msqkptr->u.msg_perm.uid = msqbuf->msg_perm.uid; /* change the owner */ in kern_msgctl() 603 msqkptr->u.msg_perm.gid = msqbuf->msg_perm.gid; /* change the owner */ in kern_msgctl() [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/kernel/ |
| D | t_sysv.c | 256 m_ds.msg_perm.mode = (m_ds.msg_perm.mode & ~0777) | 0600; in ATF_TC_BODY() 266 ATF_REQUIRE_MSG((m_ds.msg_perm.mode & 0777) == 0600, in ATF_TC_BODY() 361 mp->msg_perm.uid, mp->msg_perm.gid, in print_msqid_ds() 362 mp->msg_perm.cuid, mp->msg_perm.cgid, in print_msqid_ds() 363 mp->msg_perm.mode & 0777); in print_msqid_ds() 377 ATF_REQUIRE_MSG(mp->msg_perm.uid == uid && mp->msg_perm.cuid == uid, in print_msqid_ds() 380 ATF_REQUIRE_MSG(mp->msg_perm.gid == gid && mp->msg_perm.cgid == gid, in print_msqid_ds() 383 ATF_REQUIRE_MSG((mp->msg_perm.mode & 0777) == mode, "mode mismatch"); in print_msqid_ds()
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libc/sys/ |
| 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() 270 ATF_REQUIRE(msgds.msg_perm.mode == mode[i]); in ATF_TC_BODY()
|
| D | t_msgctl.c | 138 msgds.msg_perm.uid = getuid(); in ATF_TC_BODY() 139 msgds.msg_perm.gid = getgid(); in ATF_TC_BODY() 274 msgds.msg_perm.uid = pw->pw_uid; in ATF_TC_BODY() 279 msgds.msg_perm.uid = getuid(); in ATF_TC_BODY() 280 msgds.msg_perm.gid = pw->pw_gid; in ATF_TC_BODY() 289 msgds.msg_perm.gid = getgid(); in ATF_TC_BODY()
|
| /freebsd-12-stable/usr.bin/ipcs/ |
| D | ipcs.c | 220 uid != kxmsqids[i].u.msg_perm.uid) in main() 348 IXSEQ_TO_IPCID(i, kmsqptr->u.msg_perm), in print_kmsqptr() 349 (int)kmsqptr->u.msg_perm.key, in print_kmsqptr() 350 fmt_perm(kmsqptr->u.msg_perm.mode), in print_kmsqptr() 351 user_from_uid(kmsqptr->u.msg_perm.uid, 0), in print_kmsqptr() 352 group_from_gid(kmsqptr->u.msg_perm.gid, 0)); in print_kmsqptr() 356 user_from_uid(kmsqptr->u.msg_perm.cuid, 0), in print_kmsqptr() 357 group_from_gid(kmsqptr->u.msg_perm.cgid, 0)); in print_kmsqptr()
|
| /freebsd-12-stable/sys/compat/linux/ |
| D | linux_ipc.c | 160 struct l_ipc_perm msg_perm; member 252 linux_to_bsd_ipc_perm(&lsp->msg_perm, &bsp->msg_perm); in linux_to_bsd_msqid_ds() 267 bsd_to_linux_ipc_perm(&bsp->msg_perm, &lsp->msg_perm); in bsd_to_linux_msqid_ds() 314 linux_msqid64->msg_perm.uid = linux_msqid.msg_perm.uid; in linux_msqid_pullup() 315 linux_msqid64->msg_perm.gid = linux_msqid.msg_perm.gid; in linux_msqid_pullup() 316 linux_msqid64->msg_perm.mode = linux_msqid.msg_perm.mode; in linux_msqid_pullup() 336 error = linux_ipc64_perm_to_ipc_perm(&linux_msqid64->msg_perm, in linux_msqid_pushdown() 337 &linux_msqid.msg_perm); in linux_msqid_pushdown()
|
| D | linux_ipc64.h | 71 struct l_ipc64_perm msg_perm; member
|
| /freebsd-12-stable/sys/sys/ |
| D | msg.h | 66 struct ipc_perm_old msg_perm; /* msg queue permission bits */ member 91 struct ipc_perm msg_perm; /* msg queue permission bits */ member
|
| /freebsd-12-stable/sys/compat/freebsd32/ |
| D | freebsd32_ipc.h | 71 struct ipc_perm32 msg_perm; member 156 struct ipc_perm32_old msg_perm; member
|
| /freebsd-12-stable/sys/i386/ibcs2/ |
| D | ibcs2_ipc.c | 77 cvt_perm2iperm(&bp->msg_perm, &ibp->msg_perm); 94 cvt_iperm2perm(&ibp->msg_perm, &bp->msg_perm);
|
| D | ibcs2_ipc.h | 47 struct ibcs2_ipc_perm msg_perm; member
|
| /freebsd-12-stable/usr.bin/ipcrm/ |
| D | ipcrm.c | 89 kxmsqids[num].u.msg_perm); in msgrm()
|