public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Szabolcs Nagy <nsz@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/arm/morello/main] TODO: update cheri_perms.h
Date: Wed, 26 Oct 2022 14:48:53 +0000 (GMT)	[thread overview]
Message-ID: <20221026144859.460463854831@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=28f19db3b85abd039734b55b29acc22897b88302

commit 28f19db3b85abd039734b55b29acc22897b88302
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Mon Oct 24 11:53:56 2022 +0100

    TODO: update cheri_perms.h
    
    TODO: squash into initial cheri_perms.h

Diff:
---
 sysdeps/aarch64/morello/cheri_perms.h | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/sysdeps/aarch64/morello/cheri_perms.h b/sysdeps/aarch64/morello/cheri_perms.h
index 8c44233016..98a1926ad9 100644
--- a/sysdeps/aarch64/morello/cheri_perms.h
+++ b/sysdeps/aarch64/morello/cheri_perms.h
@@ -30,6 +30,8 @@
 #define CAP_PERM_STORE_LOCAL (1 << 12)
 #define CAP_PERM_SEAL (1 << 11)
 #define CAP_PERM_UNSEAL (1 << 10)
+#define CAP_PERM_SYSTEM (1 << 9)
+#define CAP_PERM_BRANCH_SEALED_PAIR (1 << 8)
 #define CAP_PERM_COMPARTMENT_ID (1 << 7)
 #define CAP_PERM_MUTABLE_LOAD (1 << 6)
 #define CAP_PERM_EXECUTIVE (1 << 1)
@@ -41,13 +43,29 @@
   CAP_PERM_STORE | \
   CAP_PERM_EXECUTE | \
   CAP_PERM_LOAD_CAP | \
+  CAP_PERM_MUTABLE_LOAD | \
   CAP_PERM_STORE_CAP | \
+  CAP_PERM_STORE_LOCAL | \
+  CAP_PERM_EXECUTIVE | \
+  CAP_PERM_SYSTEM | \
   CAP_PERM_SEAL | \
   CAP_PERM_UNSEAL | \
   CAP_PERM_COMPARTMENT_ID))
-#define CAP_PERM_MASK_R (CAP_PERM_MASK_BASE | CAP_PERM_LOAD | CAP_PERM_LOAD_CAP)
-#define CAP_PERM_MASK_RW (CAP_PERM_MASK_R | CAP_PERM_STORE | CAP_PERM_STORE_CAP)
-#define CAP_PERM_MASK_RX (CAP_PERM_MASK_R | CAP_PERM_EXECUTE)
+#define CAP_PERM_MASK_R ( \
+  CAP_PERM_MASK_BASE | \
+  CAP_PERM_LOAD | \
+  CAP_PERM_LOAD_CAP | \
+  CAP_PERM_MUTABLE_LOAD)
+#define CAP_PERM_MASK_RW ( \
+  CAP_PERM_MASK_R | \
+  CAP_PERM_STORE | \
+  CAP_PERM_STORE_CAP | \
+  CAP_PERM_STORE_LOCAL)
+#define CAP_PERM_MASK_RX ( \
+  CAP_PERM_MASK_R | \
+  CAP_PERM_EXECUTE | \
+  CAP_PERM_EXECUTIVE | \
+  CAP_PERM_SYSTEM)
 
 #define STACK_CAP_PERM_PCS ( \
   CAP_PERM_LOAD | \

                 reply	other threads:[~2022-10-26 14:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221026144859.460463854831@sourceware.org \
    --to=nsz@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).