]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/vm_prot.h
xnu-792.18.15.tar.gz
[apple/xnu.git] / osfmk / mach / vm_prot.h
index 2801dafd7220661c32b170fcc5531ca6b1f9a6ff..ed81997c283dfd3ed2c17f59563bc0ced1007a48 100644 (file)
@@ -84,6 +84,12 @@ 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
  */
@@ -129,4 +135,5 @@ typedef int         vm_prot_t;
 
 #define VM_PROT_WANTS_COPY     ((vm_prot_t) 0x10)
 
+
 #endif /* _MACH_VM_PROT_H_ */