X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/eb6b6ca394357805f2bdba989abae309f718b4d8..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/security/_label.h diff --git a/security/_label.h b/security/_label.h index 2070bf3bd..b18187229 100644 --- a/security/_label.h +++ b/security/_label.h @@ -68,14 +68,14 @@ * XXXMAC: This shouldn't be exported to userland, but is because of ucred.h * and various other messes. */ -#if CONFIG_EMBEDDED +#if defined(XNU_TARGET_OS_OSX) +#define MAC_MAX_SLOTS 7 +#else #if CONFIG_VNGUARD #define MAC_MAX_SLOTS 4 #else #define MAC_MAX_SLOTS 3 #endif -#else -#define MAC_MAX_SLOTS 7 #endif #define MAC_FLAG_INITIALIZED 0x0000001 /* Is initialized for use. */ @@ -83,7 +83,7 @@ struct label { int l_flags; union { - void *l_ptr; + void * XNU_PTRAUTH_SIGNED_PTR("label.l_ptr") l_ptr; long l_long; } l_perpolicy[MAC_MAX_SLOTS]; };