]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/csr.h
xnu-3789.70.16.tar.gz
[apple/xnu.git] / bsd / sys / csr.h
index cbff7a08bcdfcf0320336d3cf322f22fa1915cef..602b6061b7953959090e677c3402417d2b185a52 100644 (file)
@@ -48,6 +48,7 @@ typedef uint32_t csr_op_t;
 #define CSR_ALLOW_UNRESTRICTED_DTRACE  (1 << 5)
 #define CSR_ALLOW_UNRESTRICTED_NVRAM   (1 << 6)
 #define CSR_ALLOW_DEVICE_CONFIGURATION (1 << 7)
+#define CSR_ALLOW_ANY_RECOVERY_OS      (1 << 8)
 
 #define CSR_VALID_FLAGS (CSR_ALLOW_UNTRUSTED_KEXTS | \
                          CSR_ALLOW_UNRESTRICTED_FS | \
@@ -56,8 +57,10 @@ typedef uint32_t csr_op_t;
                          CSR_ALLOW_APPLE_INTERNAL | \
                          CSR_ALLOW_UNRESTRICTED_DTRACE | \
                          CSR_ALLOW_UNRESTRICTED_NVRAM | \
-                         CSR_ALLOW_DEVICE_CONFIGURATION)
+                         CSR_ALLOW_DEVICE_CONFIGURATION | \
+                         CSR_ALLOW_ANY_RECOVERY_OS)
 
+#define CSR_ALWAYS_ENFORCED_FLAGS (CSR_ALLOW_DEVICE_CONFIGURATION | CSR_ALLOW_ANY_RECOVERY_OS)
 
 /* CSR capabilities that a booter can give to the system */
 #define CSR_CAPABILITY_UNLIMITED                               (1 << 0)