Home
last modified time | relevance | path

Searched refs:cuid (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/sys/kern/
H A Dsysv_ipc.c99 if (cred->cr_uid == perm->cuid || cred->cr_uid == perm->uid) { in ipcperm()
165 new->cuid = old->cuid; in ipcperm_old2new()
179 old->cuid = new->cuid; in ipcperm_new2old()
205 CP(*ip32, *ip, cuid); in freebsd32_ipcperm_old_in()
218 CP(*ip, *ip32, cuid); in freebsd32_ipcperm_old_out()
232 CP(*ip32, *ip, cuid); in freebsd32_ipcperm_in()
245 CP(*ip, *ip32, cuid); in freebsd32_ipcperm_out()
H A Dsysv_sem.c566 semakptr->u.sem_perm.cuid = cred ? cred->cr_uid : 0; in sem_remove()
1054 sema[semid].u.sem_perm.cuid = cred->cr_uid; in sys_semget()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_kill.c136 uid_t cuid = 0; in ATF_TC_BODY() local
147 cuid = pw->pw_uid; in ATF_TC_BODY()
154 if (cuid == 0 || puid == 0 || cuid == puid) in ATF_TC_BODY()
171 if (setuid(cuid) < 0) in ATF_TC_BODY()
H A Dt_msgget.c177 ATF_CHECK(msgds.msg_perm.cuid == uid); in ATF_TC_BODY()
/freebsd/sys/sys/
H A Dipc.h75 unsigned short cuid; /* creator user id */ member
86 uid_t cuid; /* creator user id */ member
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_sysv.c318 mp->msg_perm.cuid, mp->msg_perm.cgid, in print_msqid_ds()
333 ATF_REQUIRE_MSG(mp->msg_perm.uid == uid && mp->msg_perm.cuid == uid, in print_msqid_ds()
535 sp->sem_perm.cuid, sp->sem_perm.cgid, in print_semid_ds()
547 ATF_REQUIRE_MSG(sp->sem_perm.uid == uid && sp->sem_perm.cuid == uid, in print_semid_ds()
723 sp->shm_perm.cuid, sp->shm_perm.cgid, in print_shmid_ds()
738 ATF_REQUIRE_MSG(sp->shm_perm.uid == uid && sp->shm_perm.cuid == uid, in print_shmid_ds()
/freebsd/sys/compat/linux/
H A Dlinux_ipc.c59 l_uid16_t cuid; member
136 bpp->cuid = lpp->cuid; in linux_to_bsd_ipc_perm()
149 lpp->cuid = bpp->cuid; in bsd_to_linux_ipc_perm()
281 out->cuid = in->cuid; in linux_ipc64_perm_to_ipc_perm()
288 out->cuid != in->cuid || out->cgid != in->cgid || in linux_ipc64_perm_to_ipc_perm()
H A Dlinux_ipc64.h47 l_uid_t cuid; member
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_ipc.h33 uid_t cuid; member
132 uint16_t cuid; member
/freebsd/tools/regression/sysvshm/
H A Dshmtest.c230 sp->shm_perm.cuid, sp->shm_perm.cgid, in print_shmid_ds()
245 if (sp->shm_perm.uid != uid || sp->shm_perm.cuid != uid) in print_shmid_ds()
/freebsd/tools/regression/sysvsem/
H A Dsemtest.c285 sp->sem_perm.cuid, sp->sem_perm.cgid, in print_semid_ds()
297 if (sp->sem_perm.uid != uid || sp->sem_perm.cuid != uid) in print_semid_ds()
/freebsd/tools/regression/sysvmsg/
H A Dmsgtest.c266 mp->msg_perm.cuid, mp->msg_perm.cgid, in print_msqid_ds()
281 if (mp->msg_perm.uid != uid || mp->msg_perm.cuid != uid) in print_msqid_ds()
/freebsd/usr.bin/ipcs/
H A Dipcs.c353 user_from_uid(kmsqptr->u.msg_perm.cuid, 0), in print_kmsqptr()
433 user_from_uid(kshmptr->u.shm_perm.cuid, 0), in print_kshmptr()
516 user_from_uid(ksemaptr->u.sem_perm.cuid, 0), in print_ksemptr()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.h64 unsigned int cuid; // uid_t member
H A Dsanitizer_platform_limits_solaris.cpp301 CHECK_SIZE_AND_OFFSET(ipc_perm, cuid);
H A Dsanitizer_platform_limits_freebsd.h108 unsigned int cuid; member
H A Dsanitizer_platform_limits_freebsd.cpp509 CHECK_SIZE_AND_OFFSET(ipc_perm, cuid);
H A Dsanitizer_platform_limits_posix.h218 int cuid; member
/freebsd/sys/netpfil/pf/
H A Dif_pflog.c260 hdr.rule_uid = rm->cuid; in pflog_packet()
H A Dpf.h539 uid_t cuid; member
H A Dpf_nv.c581 PFNV_CHK(pf_nvuint32(nvl, "cuid", &rule->cuid)); in pf_nvrule_to_krule()
755 nvlist_add_number(nvl, "cuid", rule->cuid); in pf_krule_to_nvrule()
/freebsd/lib/libpfctl/
H A Dlibpfctl.h207 uid_t cuid; member
/freebsd/contrib/openbsm/libbsm/
H A Dbsm_token.c566 ADD_U_INT16(dptr, perm->cuid); in au_to_ipc_perm()
572 ADD_U_INT32(dptr, perm->cuid); in au_to_ipc_perm()
/freebsd/sys/security/audit/
H A Dbsm_token.c510 ADD_U_INT16(dptr, perm->cuid); in au_to_ipc_perm()
516 ADD_U_INT32(dptr, perm->cuid); in au_to_ipc_perm()
H A Daudit_bsm.c1671 perm.cuid = ar->ar_arg_pipc_perm.pipc_uid; in kaudit_to_bsm()
1706 perm.cuid = ar->ar_arg_pipc_perm.pipc_uid; in kaudit_to_bsm()

12