Lines Matching refs:kauth_cred_t
90 extern void kauth_cred_print(kauth_cred_t cred);
94 int is_target_cred( kauth_cred_t the_cred );
172 static int kauth_cred_add(kauth_cred_t new_cred);
173 static void kauth_cred_remove(kauth_cred_t cred);
175 static u_long kauth_cred_get_hashkey(kauth_cred_t cred);
176 static kauth_cred_t kauth_cred_update(kauth_cred_t old_cred, kauth_cred_t new_cred, boolean_t retain_auditinfo);
177 static void kauth_cred_unref_hashlocked(kauth_cred_t *credp);
182 static void kauth_cred_print(kauth_cred_t cred);
1323 kauth_cred_change_egid(kauth_cred_t cred, gid_t new_egid)
1390 kauth_cred_getuid(kauth_cred_t cred)
1407 kauth_cred_getgid(kauth_cred_t cred)
1555 kauth_cred_getguid(kauth_cred_t cred, guid_t *guidp)
1619 kauth_cred_getntsid(kauth_cred_t cred, ntsid_t *sidp)
2069 kauth_cred_ismember_gid(kauth_cred_t cred, gid_t gid, int *resultp)
2178 kauth_cred_ismember_guid(kauth_cred_t cred, guid_t *guidp, int *resultp)
2233 kauth_cred_gid_subset(kauth_cred_t cred1, kauth_cred_t cred2, int *resultp)
2293 kauth_cred_issuser(kauth_cred_t cred)
2440 * Returns: (kauth_cred_t) Pointer to the current thread's
2455 kauth_cred_t
2503 kauth_cred_t old = uthread->uu_ucred;
2519 * Returns: (kauth_cred_t) Pointer to the current thread's
2535 kauth_cred_t
2574 * Returns: (kauth_cred_t) Pointer to the process's
2594 kauth_cred_t
2597 kauth_cred_t cred;
2647 kauth_cred_t
2650 kauth_cred_t newcred;
2652 MALLOC_ZONE(newcred, kauth_cred_t, sizeof(*newcred), M_CRED, M_WAITOK);
2687 * Returns: (kauth_cred_t) The credential that was found
2702 kauth_cred_t
2703 kauth_cred_create(kauth_cred_t cred)
2705 kauth_cred_t found_cred, new_cred = NULL;
2782 * Returns: (kauth_cred_t) The updated credential
2800 kauth_cred_t
2801 kauth_cred_setresuid(kauth_cred_t cred, uid_t ruid, uid_t euid, uid_t svuid, uid_t gmuid)
2859 * Returns: (kauth_cred_t) The updated credential
2873 kauth_cred_t
2874 kauth_cred_setresgid(kauth_cred_t cred, gid_t rgid, gid_t egid, gid_t svgid)
2939 * Returns: (kauth_cred_t) The updated credential
2967 kauth_cred_t
2968 kauth_cred_setgroups(kauth_cred_t cred, gid_t *groups, int groupcount, uid_t gmuid)
3022 * Returns: (kauth_cred_t) The updated credential
3045 kauth_cred_t
3046 kauth_cred_setuidgid(kauth_cred_t cred, uid_t uid, gid_t gid)
3104 * Returns: (kauth_cred_t) The updated credential
3118 kauth_cred_t
3119 kauth_cred_setsvuidgid(kauth_cred_t cred, uid_t uid, gid_t gid)
3156 * Returns: (kauth_cred_t) The updated credential
3170 kauth_cred_t
3171 kauth_cred_setauditinfo(kauth_cred_t cred, auditinfo_t *auditinfo_p)
3201 * Returns: (kauth_cred_t) The updated credential
3215 kauth_cred_t
3216 kauth_cred_label_update(kauth_cred_t cred, struct label *label)
3218 kauth_cred_t newcred;
3246 * Returns: (kauth_cred_t) The updated credential
3264 kauth_cred_t
3265 kauth_cred_label_update_execve(kauth_cred_t cred, vfs_context_t ctx,
3269 kauth_cred_t newcred;
3298 kauth_cred_t my_cred, my_new_cred;
3372 kauth_cred_t my_cred, my_new_cred;
3424 kauth_cred_t kauth_cred_setlabel(kauth_cred_t cred, struct label *label);
3425 kauth_cred_t
3426 kauth_cred_setlabel(kauth_cred_t cred, struct label *label)
3445 kauth_cred_t
3446 kauth_cred_label_update(__unused kauth_cred_t cred, __unused void *label)
3461 kauth_cred_t kauth_cred_setlabel(kauth_cred_t cred, void *label);
3462 kauth_cred_t
3463 kauth_cred_setlabel(__unused kauth_cred_t cred, __unused void *label)
3501 kauth_cred_ref(kauth_cred_t cred)
3552 kauth_cred_unref_hashlocked(kauth_cred_t *credp)
3606 kauth_cred_unref(kauth_cred_t *credp)
3630 kauth_cred_rele(kauth_cred_t cred)
3644 * Returns: (kauth_cred_t) The duplicate credential
3675 kauth_cred_t
3676 kauth_cred_dup(kauth_cred_t cred)
3678 kauth_cred_t newcred;
3711 * Returns: (kauth_cred_t) The copied credential
3719 kauth_cred_t
3720 kauth_cred_copy_real(kauth_cred_t cred)
3722 kauth_cred_t newcred = NULL, found_cred;
3807 * Returns: (kauth_cred_t) The updated credential
3821 static kauth_cred_t
3822 kauth_cred_update(kauth_cred_t old_cred, kauth_cred_t model_cred,
3825 kauth_cred_t found_cred, new_cred = NULL;
3899 kauth_cred_add(kauth_cred_t new_cred)
3945 kauth_cred_remove(kauth_cred_t cred)
3948 kauth_cred_t found_cred;
3997 kauth_cred_t
3998 kauth_cred_find(kauth_cred_t cred)
4001 kauth_cred_t found_cred;
4097 kauth_cred_get_hashkey(kauth_cred_t cred)
4127 kauth_cred_t found_cred;
4164 kauth_cred_print(kauth_cred_t cred)
4181 int is_target_cred( kauth_cred_t the_cred )
4303 kauth_cred_t found_cred;