]> git.saurik.com Git - apple/xnu.git/blobdiff - security/_label.h
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / security / _label.h
index 2070bf3bd0288d4bc9aee29a997a9d13960315a4..b181872292c3d4ca6a8709290e6d47085dcfe3c0 100644 (file)
  * 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];
 };