Home
last modified time | relevance | path

Searched refs:pcred (Results 1 – 7 of 7) sorted by relevance

/xnu-11215/bsd/kern/
H A Dkern_credential.c3829 .cr_posix = *pcred, in posix_cred_create_internal()
3861 pcred->cr_gmuid = pcred->cr_uid; in posix_cred_create_internal()
4018 pcred->cr_uid = euid; in kauth_cred_model_setresuid()
4023 pcred->cr_ruid = ruid; in kauth_cred_model_setresuid()
4082 pcred->cr_rgid = rgid; in kauth_cred_model_setresgid()
4179 posix_cred_t pcred; in kauth_cred_getgroups() local
4273 pcred.cr_gmuid = uid; in kauth_cred_model_setuidgid()
4479 if ((pcred->cr_ruid == pcred->cr_uid) && in kauth_cred_copy_real()
4480 (pcred->cr_rgid == pcred->cr_gid)) { in kauth_cred_copy_real()
4484 pcred->cr_uid = pcred->cr_ruid; in kauth_cred_copy_real()
[all …]
H A Dkern_prot.c424 posix_cred_t pcred; in getgroups() local
428 pcred = posix_cred_get(cred); in getgroups()
431 *retval = pcred->cr_ngroups; in getgroups()
435 if (ngrp < pcred->cr_ngroups) { in getgroups()
439 ngrp = pcred->cr_ngroups; in getgroups()
440 if ((error = copyout((caddr_t)pcred->cr_groups, in getgroups()
H A Dkern_exec.c6946 posix_cred_t pcred = posix_cred_get(model); in exec_handle_sugid()
6948 if (pcred->cr_svuid == pcred->cr_uid && in exec_handle_sugid()
6949 pcred->cr_svgid == pcred->cr_gid) { in exec_handle_sugid()
6953 pcred->cr_svuid = pcred->cr_uid; in exec_handle_sugid()
6954 pcred->cr_svgid = pcred->cr_gid; in exec_handle_sugid()
/xnu-11215/security/
H A Dmac_process.c279 posix_cred_t pcred = posix_cred_get(cred); in mac_cred_label_update() local
282 pcred->cr_flags |= CRF_MAC_ENFORCE; in mac_cred_label_update()
H A Dmac_vfs.c784 posix_cred_t pcred = posix_cred_get(new); in mac_cred_label_update_execve() local
794 pcred->cr_flags |= CRF_MAC_ENFORCE; in mac_cred_label_update_execve()
H A Dmac_policy.h3919 kauth_cred_t pcred,
/xnu-11215/bsd/sys/
H A Dkauth.h485 extern kauth_cred_t posix_cred_create(posix_cred_t pcred);