]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
aarch64: morello: define PROT_MAX
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 21 Oct 2022 11:10:11 +0000 (12:10 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 26 Oct 2022 14:32:01 +0000 (15:32 +0100)
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.

sysdeps/unix/sysv/linux/aarch64/bits/mman.h

index d7ac2fa993ed5f8af4895ec961e12d7f3d0fc9cd..8dbd8d6819ae3766b20f7486a69b5b9eaae4381d 100644 (file)
@@ -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>