Searched refs:KAUTH_UID_NONE (Results 1 – 15 of 15) sorted by relevance
| /xnu-8792.81.2/bsd/kern/ |
| H A D | kern_prot.c | 713 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 D | kern_credential.c | 1098 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() 3705 model_cred.cr_posix.cr_gmuid = KAUTH_UID_NONE; 3858 pcred->cr_gmuid = KAUTH_UID_NONE; in kauth_cred_create() 3888 pcred->cr_gmuid = KAUTH_UID_NONE; in kauth_cred_create() 3967 if ((euid == KAUTH_UID_NONE || pcred->cr_uid == euid) && in kauth_cred_setresuid() 3968 (ruid == KAUTH_UID_NONE || pcred->cr_ruid == ruid) && in kauth_cred_setresuid() 3969 (svuid == KAUTH_UID_NONE || pcred->cr_svuid == svuid) && in kauth_cred_setresuid() 3980 if (euid != KAUTH_UID_NONE) { in kauth_cred_setresuid() [all …]
|
| H A D | kern_persona.c | 118 pcred->cr_gmuid = KAUTH_UID_NONE; in personas_bootstrap() 922 uid_t uid = KAUTH_UID_NONE; in persona_get_uid() 925 return KAUTH_UID_NONE; in persona_get_uid() 962 return KAUTH_UID_NONE; in persona_get_uid()
|
| H A D | sys_persona.c | 63 kinfo->persona_uid = KAUTH_UID_NONE; in kpersona_copyin()
|
| H A D | kern_exec.c | 3134 KAUTH_UID_NONE); in spawn_persona_adopt() 6420 KAUTH_UID_NONE, in exec_handle_sugid() 6423 KAUTH_UID_NONE); in exec_handle_sugid()
|
| /xnu-8792.81.2/tools/tests/personas/ |
| H A D | persona_mgr.c | 227 kinfo.persona_gmuid = KAUTH_UID_NONE; in main() 313 if (kinfo.persona_gmuid != KAUTH_UID_NONE && kinfo.persona_ngroups == 0) { in main()
|
| H A D | persona_spawn.c | 137 …_set_persona_groups_np(&attr, pa->kinfo.persona_ngroups, pa->kinfo.persona_groups, KAUTH_UID_NONE); in spawn_child()
|
| /xnu-8792.81.2/tests/ |
| H A D | posix_spawn_posix_cred.c | 46 ret = posix_spawnattr_set_groups_np(&attr, 3, &groups, KAUTH_UID_NONE);
|
| H A D | persona.c | 115 T_ASSERT_EQ(info.persona_uid, KAUTH_UID_NONE, NULL);
|
| /xnu-8792.81.2/osfmk/bank/ |
| H A D | bank.c | 53 #ifndef KAUTH_UID_NONE 54 #define KAUTH_UID_NONE (~(uint32_t)0 - 100) macro 317 .persona_uid = KAUTH_UID_NONE in bank_get_value() 1977 return own_uid == KAUTH_UID_NONE || own_uid == UINT_MAX || own_uid == new_uid; in bank_task_can_adopt_persona()
|
| /xnu-8792.81.2/bsd/sys/ |
| H A D | kauth.h | 53 #define KAUTH_UID_NONE (~(uid_t)0 - 100) /* not a valid UID */ macro
|
| /xnu-8792.81.2/bsd/vfs/ |
| H A D | vfs_xattr.c | 783 va.va_uid = KAUTH_UID_NONE; in getshadowfile() 2555 uid = KAUTH_UID_NONE; in open_xattrfile() 2563 if (uid != KAUTH_UID_NONE) { in open_xattrfile()
|
| H A D | vfs_syscalls.c | 1227 vfs_setowner(mp, KAUTH_UID_NONE, KAUTH_GID_NONE); in mount_common() 4893 if (uap->uid != KAUTH_UID_NONE) { in open_extended() 5388 if (uap->uid != KAUTH_UID_NONE) { in mkfifo_extended() 7617 if (uid != KAUTH_UID_NONE) { in chmod_extended_init()
|
| H A D | vfs_subr.c | 8259 (mp->mnt_fsowner != KAUTH_UID_NONE)) { in vnode_attr_authorize_dir_clone() 9933 if ((dmp->mnt_flag & MNT_IGNORE_OWNERSHIP) && (dmp->mnt_fsowner != KAUTH_UID_NONE)) { in vnode_authattr_new_internal()
|
| H A D | kpi_vfs.c | 2636 if (nuid == KAUTH_UID_NONE) { in vnode_attr_handle_uid_and_gid()
|