aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-25 09:14:46 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-11-22 14:31:25 +0000
commit8f6565fa273e95dfedf84366629e815f759d3f76 (patch)
treea12dfcd56f17da51f4d340d7f7d874f8de60d436 /sysdeps/unix
parent8e860da0db41471ac5a4c68b4838308c13ba5f41 (diff)
downloadglibc-8f6565fa273e95dfedf84366629e815f759d3f76.zip
glibc-8f6565fa273e95dfedf84366629e815f759d3f76.tar.gz
glibc-8f6565fa273e95dfedf84366629e815f759d3f76.tar.bz2
cheri: Fix capability permissions of PROT_NONE maps in test code
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/tst-pkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-pkey.c b/sysdeps/unix/sysv/linux/tst-pkey.c
index df51f69..48b4308 100644
--- a/sysdeps/unix/sysv/linux/tst-pkey.c
+++ b/sysdeps/unix/sysv/linux/tst-pkey.c
@@ -175,7 +175,7 @@ do_test (void)
/* pkey_mprotect with key -1 should work even when there is no
protection key support. */
{
- int *page = xmmap (NULL, pagesize, PROT_NONE,
+ int *page = xmmap (NULL, pagesize, PROT_NONE | PROT_MAX_RW,
MAP_ANONYMOUS | MAP_PRIVATE, -1);
TEST_COMPARE (pkey_mprotect (page, pagesize, PROT_READ | PROT_WRITE, -1),
0);