X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..7ee9d059c4eecf68ae4f8b0fb99ae2471eda79af:/bsd/sys/ucred.h diff --git a/bsd/sys/ucred.h b/bsd/sys/ucred.h index 786f23aee..6d914a4df 100644 --- a/bsd/sys/ucred.h +++ b/bsd/sys/ucred.h @@ -78,6 +78,7 @@ struct label; #ifdef __APPLE_API_UNSTABLE +#include /* * In-kernel credential structure. @@ -89,6 +90,7 @@ struct ucred { 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) @@ -101,19 +103,20 @@ struct ucred { 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 */ /*