From d89af8f6d5f3b971dda663081c03d790437c2f03 Mon Sep 17 00:00:00 2001 From: comex Date: Sat, 24 Jan 2015 20:04:20 -0500 Subject: Add function to deal with mprotecting RW and back. A bit more complex than the minimum would be... (and minor build fixes) --- lib/substitute.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/substitute.h') diff --git a/lib/substitute.h b/lib/substitute.h index ada57f2..95f8436 100644 --- a/lib/substitute.h +++ b/lib/substitute.h @@ -39,6 +39,7 @@ enum { /* substitute_hook_functions: mmap or mprotect failure other than ENOMEM * (preserved in errno on return) + * substitute_hook_functions: vm_region failure (errno = 0) * substitute_hook_objc_message: vm_remap failure * Most likely to come up with substitute_hook_functions if the kernel is * preventing pages from being marked executable. */ -- cgit v1.2.3