struct label;
#ifdef __APPLE_API_UNSTABLE
+#include <sys/queue.h>
/*
* In-kernel credential structure.
TAILQ_ENTRY(ucred) cr_link; /* never modify this without KAUTH_CRED_HASH_LOCK */
u_long cr_ref; /* reference count */
+struct posix_cred {
/*
* The credential hash depends on everything from this point on
* (see kauth_cred_get_hashkey)
gid_t cr_rgid; /* real group id */
gid_t cr_svgid; /* saved group id */
uid_t cr_gmuid; /* UID for group membership purposes */
- struct auditinfo cr_au; /* user auditing data */
- struct label *cr_label; /* MAC label */
-
int cr_flags; /* flags on credential */
+} cr_posix;
+ struct label *cr_label; /* MAC label */
/*
* NOTE: If anything else (besides the flags)
* added after the label, you must change
* kauth_cred_find().
*/
+ struct au_session cr_audit; /* user auditing data */
};
#ifndef _KAUTH_CRED_T
#define _KAUTH_CRED_T
typedef struct ucred *kauth_cred_t;
+typedef struct posix_cred *posix_cred_t;
#endif /* !_KAUTH_CRED_T */
/*