From: Szabolcs Nagy Date: Fri, 21 Oct 2022 11:10:11 +0000 (+0100) Subject: aarch64: morello: define PROT_MAX X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=418ede06d733e2388decf9a2b9f60674463d14d1;p=thirdparty%2Fglibc.git 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. --- diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/mman.h b/sysdeps/unix/sysv/linux/aarch64/bits/mman.h index d7ac2fa993e..8dbd8d6819a 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