Searched refs:shm_perm (Results 1 - 19 of 19) sorted by relevance

/freebsd-11.0-release/tools/regression/sysvshm/
H A Dshmtest.c122 s_ds.shm_perm.mode = (s_ds.shm_perm.mode & ~0777) | 0600;
132 if ((s_ds.shm_perm.mode & 0777) != 0600)
230 sp->shm_perm.uid, sp->shm_perm.gid,
231 sp->shm_perm.cuid, sp->shm_perm.cgid,
232 sp->shm_perm.mode & 0777);
246 if (sp->shm_perm.uid != uid || sp->shm_perm
[all...]
/freebsd-11.0-release/contrib/sendmail/libsm/
H A Dshm.c135 shmid_ds.shm_perm.uid = uid;
136 shmid_ds.shm_perm.gid = gid;
137 shmid_ds.shm_perm.mode = mode;
/freebsd-11.0-release/sys/kern/
H A Dsysv_shm.c206 if ((shmsegs[i].u.shm_perm.mode & SHMSEG_ALLOCATED) &&
209 shmsegs[i].u.shm_perm.key == key)
228 if ((shmseg->u.shm_perm.mode & SHMSEG_ALLOCATED) == 0 ||
230 (shmseg->u.shm_perm.mode & SHMSEG_REMOVED) != 0) ||
231 (is_shmid && shmseg->u.shm_perm.seq != IPCID_TO_SEQ(arg)) ||
249 shmseg->u.shm_perm.mode = SHMSEG_FREE;
279 (shmseg->u.shm_perm.mode & SHMSEG_REMOVED)) {
290 shmseg->u.shm_perm.key = IPC_PRIVATE;
291 shmseg->u.shm_perm.mode |= SHMSEG_REMOVED;
400 error = ipcperm(td, &shmseg->u.shm_perm,
1216 struct ipc_perm_old shm_perm; /* operation perms */ member in struct:oshmid_ds
[all...]
/freebsd-11.0-release/sys/i386/ibcs2/
H A Dibcs2_ipc.h74 struct ibcs2_ipc_perm shm_perm; member in struct:ibcs2_shmid_ds
H A Dibcs2_ipc.c415 cvt_perm2iperm(&bp->shm_perm, &ibp->shm_perm);
435 cvt_iperm2perm(&ibp->shm_perm, &bp->shm_perm);
/freebsd-11.0-release/sys/sys/
H A Dshm.h83 struct ipc_perm_old shm_perm; /* operation permission structure */ member in struct:shmid_ds_old
96 struct ipc_perm shm_perm; /* operation permission structure */ member in struct:shmid_ds
/freebsd-11.0-release/contrib/netbsd-tests/kernel/
H A Dt_sysv.c716 s_ds.shm_perm.mode = (s_ds.shm_perm.mode & ~0777) | 0600;
726 ATF_REQUIRE_MSG((s_ds.shm_perm.mode & 0777) == 0600,
800 sp->shm_perm.uid, sp->shm_perm.gid,
801 sp->shm_perm.cuid, sp->shm_perm.cgid,
802 sp->shm_perm.mode & 0777);
816 ATF_REQUIRE_MSG(sp->shm_perm.uid == uid && sp->shm_perm
[all...]
/freebsd-11.0-release/usr.bin/ipcs/
H A Dipcs.c252 if (kxshmids[shmidx].u.shm_perm.mode & 0x0800) {
254 uid != kxshmids[shmidx].u.shm_perm.uid)
440 IXSEQ_TO_IPCID(i, kshmptr->u.shm_perm),
441 (int)kshmptr->u.shm_perm.key,
442 fmt_perm(kshmptr->u.shm_perm.mode),
443 user_from_uid(kshmptr->u.shm_perm.uid, 0),
444 group_from_gid(kshmptr->u.shm_perm.gid, 0));
448 user_from_uid(kshmptr->u.shm_perm.cuid, 0),
449 group_from_gid(kshmptr->u.shm_perm.cgid, 0));
/freebsd-11.0-release/sys/compat/freebsd32/
H A Dfreebsd32_ipc.h71 struct ipc_perm32 shm_perm; member in struct:shmid_ds32
140 struct ipc_perm32_old shm_perm; member in struct:shmid_ds32_old
/freebsd-11.0-release/sys/i386/linux/
H A Dlinux_ipc64.h118 struct l_ipc64_perm shm_perm; /* operation perms */ member in struct:l_shmid64_ds
/freebsd-11.0-release/sys/amd64/linux/
H A Dlinux_ipc64.h118 struct l_ipc64_perm shm_perm; /* operation perms */ member in struct:l_shmid64_ds
/freebsd-11.0-release/sys/amd64/linux32/
H A Dlinux32_ipc64.h118 struct l_ipc64_perm shm_perm; /* operation perms */ member in struct:l_shmid64_ds
/freebsd-11.0-release/sys/compat/linux/
H A Dlinux_ipc.c183 struct l_ipc_perm shm_perm; member in struct:l_shmid_ds
222 linux_to_bsd_ipc_perm(&lsp->shm_perm, &bsp->shm_perm);
236 bsd_to_linux_ipc_perm(&bsp->shm_perm, &lsp->shm_perm);
414 linux_shmid->shm_perm.uid = linux_shmid64.shm_perm.uid;
415 linux_shmid->shm_perm.gid = linux_shmid64.shm_perm.gid;
416 linux_shmid->shm_perm
[all...]
/freebsd-11.0-release/sys/compat/svr4/
H A Dsvr4_ipc.h117 struct svr4_ipc_perm shm_perm; member in struct:svr4_shmid_ds
H A Dsvr4_ipc.c496 bsd_to_svr4_ipc_perm(&bds->shm_perm, &sds->shm_perm);
514 svr4_to_bsd_ipc_perm(&sds->shm_perm, &bds->shm_perm);
/freebsd-11.0-release/usr.bin/ipcrm/
H A Dipcrm.c127 if (kxshmids[num].u.shm_perm.mode & 0x0800) {
129 kxshmids[num].u.shm_perm);
/freebsd-11.0-release/contrib/apr/shmem/unix/
H A Dshm.c249 shmbuf.shm_perm.uid = uid;
250 shmbuf.shm_perm.gid = gid;
397 shmbuf.shm_perm.uid = uid;
398 shmbuf.shm_perm.gid = gid;
/freebsd-11.0-release/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_posix.h219 __sanitizer_ipc_perm shm_perm; member in struct:__sanitizer::__sanitizer_shmid_ds
270 __sanitizer_ipc_perm shm_perm; member in struct:__sanitizer::__sanitizer_shmid_ds
H A Dsanitizer_platform_limits_posix.cc1139 CHECK_SIZE_AND_OFFSET(shmid_ds, shm_perm);

Completed in 164 milliseconds