Lines Matching refs:kauth_cred_t
181 // typedef struct ucred *kauth_cred_t;
190 extern kauth_cred_t kauth_cred_get(void);
191 extern kauth_cred_t kauth_cred_get_with_ref(void);
192 extern kauth_cred_t kauth_cred_proc_ref(proc_t procp);
193 extern kauth_cred_t kauth_cred_alloc(void);
194 extern kauth_cred_t kauth_cred_create(kauth_cred_t cred);
195 extern void kauth_cred_ref(kauth_cred_t _cred);
197 extern void kauth_cred_rele(kauth_cred_t _cred) __deprecated;
198 extern kauth_cred_t kauth_cred_dup(kauth_cred_t cred);
199 extern kauth_cred_t kauth_cred_copy_real(kauth_cred_t cred);
200 extern void kauth_cred_unref(kauth_cred_t *_cred);
201 extern kauth_cred_t kauth_cred_setresuid(kauth_cred_t cred, uid_t ruid, uid_t euid, uid_t svuid, uid_t gmuid);
202 extern kauth_cred_t kauth_cred_setresgid(kauth_cred_t cred, gid_t rgid, gid_t egid, gid_t svgid);
203 extern kauth_cred_t kauth_cred_setuidgid(kauth_cred_t cred, uid_t uid, gid_t gid);
204 extern kauth_cred_t kauth_cred_setsvuidgid(kauth_cred_t cred, uid_t uid, gid_t gid);
205 extern kauth_cred_t kauth_cred_setgroups(kauth_cred_t cred, gid_t *groups, int groupcount, uid_t gmuid);
210 extern kauth_cred_t kauth_cred_label_update(kauth_cred_t cred, struct label *label);
218 extern kauth_cred_t kauth_cred_label_update(kauth_cred_t cred, void *label);
222 extern kauth_cred_t kauth_cred_find(kauth_cred_t cred);
225 extern uid_t kauth_cred_getuid(kauth_cred_t _cred);
226 extern gid_t kauth_cred_getgid(kauth_cred_t _cred);
233 extern int kauth_cred_getguid(kauth_cred_t _cred, guid_t *_guidp);
236 extern int kauth_cred_getntsid(kauth_cred_t _cred, ntsid_t *_sidp);
239 extern int kauth_cred_ismember_gid(kauth_cred_t _cred, gid_t _gid, int *_resultp);
240 extern int kauth_cred_ismember_guid(kauth_cred_t _cred, guid_t *_guidp, int *_resultp);
241 extern int kauth_cred_gid_subset(kauth_cred_t _cred1, kauth_cred_t _cred2, int *_resultp);
244 extern kauth_cred_t kauth_cred_setauditinfo(kauth_cred_t, struct auditinfo *);
247 extern int kauth_cred_supplementary_add(kauth_cred_t cred, int ident, const void *data, size_t datasize);
248 extern int kauth_cred_supplementary_remove(kauth_cred_t cred, int ident);
251 extern int kauth_cred_issuser(kauth_cred_t _cred);
266 extern int cantrace(proc_t cur_procp, kauth_cred_t creds, proc_t traced_procp, int *errp);
438 typedef int (* kauth_scope_callback_t)(kauth_cred_t _credential,
474 extern int kauth_authorize_action(kauth_scope_t _scope, kauth_cred_t _credential, kauth_action_t _action,
476 extern int kauth_acl_evaluate(kauth_cred_t _credential, kauth_acl_eval_t _eval);
480 extern int kauth_authorize_allow(kauth_cred_t _credential, void *_idata, kauth_action_t _action,
493 extern int kauth_authorize_generic(kauth_cred_t credential, kauth_action_t action);
506 extern int kauth_authorize_process(kauth_cred_t _credential, kauth_action_t _action,
562 extern int kauth_authorize_fileop(kauth_cred_t _credential, kauth_action_t _action,