Lines Matching refs:kauth_cred_t
113 extern void kauth_cred_print(kauth_cred_t cred);
117 int is_target_cred( kauth_cred_t the_cred );
276 static int kauth_cred_add(kauth_cred_t new_cred);
277 static boolean_t kauth_cred_remove(kauth_cred_t cred);
279 static u_long kauth_cred_get_hashkey(kauth_cred_t cred);
280 static kauth_cred_t kauth_cred_update(kauth_cred_t old_cred, kauth_cred_t new_cred, boolean_t retain_auditinfo);
281 static boolean_t kauth_cred_unref_hashlocked(kauth_cred_t *credp);
286 static void kauth_cred_print(kauth_cred_t cred);
1893 kauth_cred_change_egid(kauth_cred_t cred, gid_t new_egid)
1961 kauth_cred_getuid(kauth_cred_t cred)
1978 kauth_cred_getruid(kauth_cred_t cred)
1995 kauth_cred_getsvuid(kauth_cred_t cred)
2012 kauth_cred_getgid(kauth_cred_t cred)
2029 kauth_cred_getrgid(kauth_cred_t cred)
2046 kauth_cred_getsvgid(kauth_cred_t cred)
2345 kauth_cred_getguid(kauth_cred_t cred, guid_t *guidp)
2409 kauth_cred_getntsid(kauth_cred_t cred, ntsid_t *sidp)
3004 kauth_cred_ismember_gid(kauth_cred_t cred, gid_t gid, int *resultp)
3131 kauth_cred_ismember_guid(__unused kauth_cred_t cred, guid_t *guidp, int *resultp)
3226 kauth_cred_gid_subset(kauth_cred_t cred1, kauth_cred_t cred2, int *resultp)
3288 kauth_cred_issuser(kauth_cred_t cred)
3435 * Returns: (kauth_cred_t) Pointer to the current thread's
3450 kauth_cred_t
3509 kauth_cred_t old = uthread->uu_ucred;
3525 * Returns: (kauth_cred_t) Pointer to the current thread's
3541 kauth_cred_t
3580 * Returns: (kauth_cred_t) Pointer to the process's
3600 kauth_cred_t
3603 kauth_cred_t cred;
3653 kauth_cred_t
3656 kauth_cred_t newcred;
3658 MALLOC_ZONE(newcred, kauth_cred_t, sizeof(*newcred), M_CRED, M_WAITOK);
3695 * Returns: (kauth_cred_t) The credential that was found
3710 kauth_cred_t
3711 kauth_cred_create(kauth_cred_t cred)
3713 kauth_cred_t found_cred, new_cred = NULL;
3830 * Returns: (kauth_cred_t) The updated credential
3848 kauth_cred_t
3849 kauth_cred_setresuid(kauth_cred_t cred, uid_t ruid, uid_t euid, uid_t svuid, uid_t gmuid)
3909 * Returns: (kauth_cred_t) The updated credential
3923 kauth_cred_t
3924 kauth_cred_setresgid(kauth_cred_t cred, gid_t rgid, gid_t egid, gid_t svgid)
3991 * Returns: (kauth_cred_t) The updated credential
4019 kauth_cred_t
4020 kauth_cred_setgroups(kauth_cred_t cred, gid_t *groups, int groupcount, uid_t gmuid)
4067 * kauth_cred_t without a POSIX label. This will be the case in
4077 kauth_cred_getgroups(kauth_cred_t cred, gid_t *grouplist, int *countp)
4132 * Returns: (kauth_cred_t) The updated credential
4155 kauth_cred_t
4156 kauth_cred_setuidgid(kauth_cred_t cred, uid_t uid, gid_t gid)
4219 * Returns: (kauth_cred_t) The updated credential
4233 kauth_cred_t
4234 kauth_cred_setsvuidgid(kauth_cred_t cred, uid_t uid, gid_t gid)
4276 * Returns: (kauth_cred_t) The updated credential
4290 kauth_cred_t
4291 kauth_cred_setauditinfo(kauth_cred_t cred, au_session_t *auditinfo_p)
4321 * Returns: (kauth_cred_t) The updated credential
4335 kauth_cred_t
4336 kauth_cred_label_update(kauth_cred_t cred, struct label *label)
4338 kauth_cred_t newcred;
4366 * Returns: (kauth_cred_t) The updated credential
4384 kauth_cred_t
4385 kauth_cred_label_update_execve(kauth_cred_t cred, vfs_context_t ctx,
4389 kauth_cred_t newcred;
4419 kauth_cred_t my_cred, my_new_cred;
4497 kauth_cred_t my_cred, my_new_cred;
4551 kauth_cred_t kauth_cred_setlabel(kauth_cred_t cred, struct label *label);
4552 kauth_cred_t
4553 kauth_cred_setlabel(kauth_cred_t cred, struct label *label)
4572 kauth_cred_t
4573 kauth_cred_label_update(__unused kauth_cred_t cred, __unused void *label)
4588 kauth_cred_t kauth_cred_setlabel(kauth_cred_t cred, void *label);
4589 kauth_cred_t
4590 kauth_cred_setlabel(__unused kauth_cred_t cred, __unused void *label)
4628 kauth_cred_ref(kauth_cred_t cred)
4679 kauth_cred_unref_hashlocked(kauth_cred_t *credp)
4738 kauth_cred_unref(kauth_cred_t *credp)
4777 kauth_cred_rele(kauth_cred_t cred)
4792 * Returns: (kauth_cred_t) The duplicate credential
4823 kauth_cred_t
4824 kauth_cred_dup(kauth_cred_t cred)
4826 kauth_cred_t newcred;
4860 * Returns: (kauth_cred_t) The copied credential
4868 kauth_cred_t
4869 kauth_cred_copy_real(kauth_cred_t cred)
4871 kauth_cred_t newcred = NULL, found_cred;
4960 * Returns: (kauth_cred_t) The updated credential
4974 static kauth_cred_t
4975 kauth_cred_update(kauth_cred_t old_cred, kauth_cred_t model_cred,
4978 kauth_cred_t found_cred, new_cred = NULL;
5070 kauth_cred_add(kauth_cred_t new_cred)
5116 kauth_cred_remove(kauth_cred_t cred)
5119 kauth_cred_t found_cred;
5163 kauth_cred_t
5164 kauth_cred_find(kauth_cred_t cred)
5167 kauth_cred_t found_cred;
5262 kauth_cred_get_hashkey(kauth_cred_t cred)
5303 kauth_cred_t found_cred;
5340 kauth_cred_print(kauth_cred_t cred)
5361 int is_target_cred( kauth_cred_t the_cred )
5483 kauth_cred_t found_cred;
5641 * Description: Helper function to create a kauth_cred_t credential that is
5647 * Returns: (kauth_cred_t) The credential that was found in the
5667 * create a new kauth_cred_t, then label it with a POSIX label
5668 * corresponding to the contents of the kauth_cred_t. If the
5674 kauth_cred_t
5689 * Description: Given a kauth_cred_t, return the POSIX credential label, if
5706 * there is no POSIX label on the kauth_cred_t credential, this
5710 * transiently loaded POSIX policy, or kauth_cred_t credentials
5715 * field of the supplied kauth_cred_t credential, and as such
5720 posix_cred_get(kauth_cred_t cred)
5729 * Description: Label a kauth_cred_t with a POSIX credential label
5744 * credential is a subfield of the kauth_cred_t (ucred), which
5748 posix_cred_label(kauth_cred_t cred, posix_cred_t pcred)
5774 posix_cred_access(kauth_cred_t cred, id_t object_uid, id_t object_gid, mode_t object_mode, mode_t mode_req)