diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-21 12:10:11 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-11-22 14:31:25 +0000 |
commit | 2b0a2bff6091ad255a94d9905cdaccdaaddbd927 (patch) | |
tree | 230922efe341352a53c4685a00725c219f1d5492 /sysdeps/unix | |
parent | 868b753880f56e598c62c5345769064d35cf9687 (diff) | |
download | glibc-2b0a2bff6091ad255a94d9905cdaccdaaddbd927.zip glibc-2b0a2bff6091ad255a94d9905cdaccdaaddbd927.tar.gz glibc-2b0a2bff6091ad255a94d9905cdaccdaaddbd927.tar.bz2 |
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.h | 3 |
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 d7ac2fa..8dbd8d6 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> |