From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id B3DA8385151B; Thu, 27 Oct 2022 13:53:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3DA8385151B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666878812; bh=tKn/LuELvMl6faeXmg5VNzEj8trsphNSYPn/mG2Y5PI=; h=From:To:Subject:Date:From; b=bu0j5WL2uE3lsdaJtqqZfsW5g1y9jKI63BrLNAnDIUZErWlhhRKFaGu+aoHmZk9nG qSCR9dM5GezONmAjkY5GCUuKvdvRrJiw2yiJZi6izz7lUI9OIJWMhNODM6yKIhUug1 +dqWjT5PO3ILBPtBDd1VJ9U7yNHInaRfiXMZa24k= 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: ab9182522f8de407c2447239ddb1f12218f43a15 X-Git-Newrev: f3dfce19234c08bc08f324097ae22e5095ebabdd Message-Id: <20221027135332.B3DA8385151B@sourceware.org> Date: Thu, 27 Oct 2022 13:53:32 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f3dfce19234c08bc08f324097ae22e5095ebabdd commit f3dfce19234c08bc08f324097ae22e5095ebabdd 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