Home
last modified time | relevance | path

Searched refs:KAUTH_UID_NONE (Results 1 – 13 of 13) sorted by relevance

/xnu-8020.101.4/bsd/kern/
H A Dkern_prot.c713 uid_t svuid = KAUTH_UID_NONE; in setuid()
714 uid_t gmuid = KAUTH_UID_NONE; in setuid()
716 ruid = KAUTH_UID_NONE; in setuid()
756 if (changed && ruid != KAUTH_UID_NONE && old_ruid != ruid && in setuid()
808 return kauth_cred_setresuid(cur_cred, KAUTH_UID_NONE, want_euid, in seteuid()
809 KAUTH_UID_NONE, cur_pcred->cr_gmuid); in seteuid()
859 want_ruid = KAUTH_UID_NONE; in setreuid()
863 want_euid = KAUTH_UID_NONE; in setreuid()
871 uid_t svuid = KAUTH_UID_NONE; in setreuid()
879 if (((want_ruid != KAUTH_UID_NONE && /* allow no change of ruid */ in setreuid()
[all …]
H A Dkern_credential.c1098 if (uid != KAUTH_UID_NONE) { in kauth_identity_alloc()
1397 kip = kauth_identity_alloc(KAUTH_UID_NONE, elp->el_gid, in kauth_identity_updatecache()
3094 if (pcred->cr_gmuid == KAUTH_UID_NONE) { in kauth_cred_ismember_gid()
3704 model_cred.cr_posix.cr_gmuid = KAUTH_UID_NONE;
3857 pcred->cr_gmuid = KAUTH_UID_NONE; in kauth_cred_create()
3887 pcred->cr_gmuid = KAUTH_UID_NONE; in kauth_cred_create()
3966 if ((euid == KAUTH_UID_NONE || pcred->cr_uid == euid) && in kauth_cred_setresuid()
3967 (ruid == KAUTH_UID_NONE || pcred->cr_ruid == ruid) && in kauth_cred_setresuid()
3968 (svuid == KAUTH_UID_NONE || pcred->cr_svuid == svuid) && in kauth_cred_setresuid()
3979 if (euid != KAUTH_UID_NONE) { in kauth_cred_setresuid()
[all …]
H A Dkern_persona.c123 pcred->cr_gmuid = KAUTH_UID_NONE; in personas_bootstrap()
293 &new_group, 1, KAUTH_UID_NONE); in persona_init_begin()
1094 KAUTH_UID_NONE); in persona_set_cred()
1139 KAUTH_UID_NONE); in persona_set_cred_from_proc()
1299 uid_t gmuid = KAUTH_UID_NONE; in persona_get_gmuid()
H A Dsys_persona.c157 kinfo.persona_gmuid = KAUTH_UID_NONE; in kpersona_alloc_syscall()
H A Dkern_exec.c2839 KAUTH_UID_NONE); in spawn_persona_adopt()
6014 KAUTH_UID_NONE, in exec_handle_sugid()
6017 KAUTH_UID_NONE); in exec_handle_sugid()
/xnu-8020.101.4/tools/tests/personas/
H A Dpersona_mgr.c227 kinfo.persona_gmuid = KAUTH_UID_NONE; in main()
313 if (kinfo.persona_gmuid != KAUTH_UID_NONE && kinfo.persona_ngroups == 0) { in main()
H A Dpersona_spawn.c137 …_set_persona_groups_np(&attr, pa->kinfo.persona_ngroups, pa->kinfo.persona_groups, KAUTH_UID_NONE); in spawn_child()
/xnu-8020.101.4/tests/
H A Dposix_spawn_posix_cred.c46 ret = posix_spawnattr_set_groups_np(&attr, 3, &groups, KAUTH_UID_NONE);
/xnu-8020.101.4/bsd/sys/
H A Dkauth.h53 #define KAUTH_UID_NONE (~(uid_t)0 - 100) /* not a valid UID */ macro
/xnu-8020.101.4/bsd/vfs/
H A Dvfs_xattr.c784 va.va_uid = KAUTH_UID_NONE; in getshadowfile()
2557 uid = KAUTH_UID_NONE; in open_xattrfile()
2565 if (uid != KAUTH_UID_NONE) { in open_xattrfile()
H A Dvfs_syscalls.c905 vfs_setowner(mp, KAUTH_UID_NONE, KAUTH_GID_NONE); in mount_common()
4475 if (uap->uid != KAUTH_UID_NONE) { in open_extended()
4907 if (uap->uid != KAUTH_UID_NONE) { in mkfifo_extended()
7103 if (uap->uid != KAUTH_UID_NONE) { in chmod_extended()
7232 if (uap->uid != KAUTH_UID_NONE) { in fchmod_extended()
H A Dvfs_subr.c7744 (mp->mnt_fsowner != KAUTH_UID_NONE)) { in vnode_attr_authorize_dir_clone()
9407 if ((dmp->mnt_flag & MNT_IGNORE_OWNERSHIP) && (dmp->mnt_fsowner != KAUTH_UID_NONE)) { in vnode_authattr_new_internal()
H A Dkpi_vfs.c2534 if (nuid == KAUTH_UID_NONE) { in vnode_attr_handle_mnt_ignore_ownership()