about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-21 12:10:11 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-26 15:32:01 +0100
commit418ede06d733e2388decf9a2b9f60674463d14d1 (patch)
tree5dda3fd3c2f679e5ce35e36c5bb4533e23b96f2a
parentdac0b184e7affbcdb11c3bfaef7d03bf3b0bfe28 (diff)
downloadglibc-418ede06d733e2388decf9a2b9f60674463d14d1.tar.gz
glibc-418ede06d733e2388decf9a2b9f60674463d14d1.tar.xz
glibc-418ede06d733e2388decf9a2b9f60674463d14d1.zip
aarch64: morello: define PROT_MAX
Specifies the prot flags a mapping may gain via mprotect or MAP_FIXED.
On CHERI targets this is used to get capability with more permissions
than the original mmap protection would imply.
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/bits/mman.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/mman.h b/sysdeps/unix/sysv/linux/aarch64/bits/mman.h
index d7ac2fa993..8dbd8d6819 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/mman.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/mman.h
@@ -25,6 +25,9 @@
 
 #define PROT_BTI	0x10
 #define PROT_MTE	0x20
+#ifdef __CHERI_PURE_CAPABILITY__
+# define PROT_MAX(prot) ((prot) << 16)
+#endif
 
 #include <bits/mman-map-flags-generic.h>