From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id C903B3853D72; Wed, 23 Nov 2022 14:43:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C903B3853D72 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214605; bh=wJ8r3UkEQwisOTRMVpuwg7t9/5/2IygD8NZqdrRqtCc=; h=From:To:Subject:Date:From; b=FIN7ZIhX/dWnhBKIAqX+0eC+ryodPNRVr8EVQfRIe5XJIPrlyrjfkrbYvmWVoF3qP Pn/NUWkp+WYNQgLP2mCr3zUvHg3gxnlcGxFDkHpWd6pReG0Rr2ND/CzPNj40A33l5S gee3CIcvxh7EkSWvazOMy7ua3rhs2Cc+uysOWUJA= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] aarch64: morello: define PROT_MAX X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 868b753880f56e598c62c5345769064d35cf9687 X-Git-Newrev: 2b0a2bff6091ad255a94d9905cdaccdaaddbd927 Message-Id: <20221123144325.C903B3853D72@sourceware.org> Date: Wed, 23 Nov 2022 14:43:25 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2b0a2bff6091ad255a94d9905cdaccdaaddbd927 commit 2b0a2bff6091ad255a94d9905cdaccdaaddbd927 Author: Szabolcs Nagy Date: Fri Oct 21 12:10:11 2022 +0100 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: --- sysdeps/unix/sysv/linux/aarch64/bits/mman.h | 3 +++ 1 file changed, 3 insertions(+) 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