]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/vm_prot.h
xnu-1504.7.4.tar.gz
[apple/xnu.git] / osfmk / mach / vm_prot.h
index ed81997c283dfd3ed2c17f59563bc0ced1007a48..6fe17d43cc53a69e4e9d09b033db062bfcf9bba9 100644 (file)
@@ -84,12 +84,6 @@ typedef int          vm_prot_t;
 #define VM_PROT_WRITE  ((vm_prot_t) 0x02)      /* write permission */
 #define VM_PROT_EXECUTE        ((vm_prot_t) 0x04)      /* execute permission */
 
-/*
- *     For now we can only support no execute on stacks... too many
- *     entries are marked w/o VM_PROT_EXECUTE that actually have code
- */
-#define STACK_ONLY_NX  1
-
 /*
  *     The default protection for newly-created virtual memory
  */
@@ -136,4 +130,12 @@ typedef int                vm_prot_t;
 #define VM_PROT_WANTS_COPY     ((vm_prot_t) 0x10)
 
 
+/*
+ *     The caller wants this memory region treated as if it had a valid
+ *     code signature.
+ */
+
+#define VM_PROT_TRUSTED                ((vm_prot_t) 0x20)
+
+
 #endif /* _MACH_VM_PROT_H_ */