aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
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-27 14:46:50 +0100
commitf3dfce19234c08bc08f324097ae22e5095ebabdd (patch)
tree6f5c7e77a5a401240ed858b77bf5e76641561bdb /sysdeps/unix
parentab9182522f8de407c2447239ddb1f12218f43a15 (diff)
downloadglibc-f3dfce19234c08bc08f324097ae22e5095ebabdd.tar
glibc-f3dfce19234c08bc08f324097ae22e5095ebabdd.tar.gz
glibc-f3dfce19234c08bc08f324097ae22e5095ebabdd.tar.bz2
glibc-f3dfce19234c08bc08f324097ae22e5095ebabdd.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.
Diffstat (limited to 'sysdeps/unix')
-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>