diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-25 09:14:46 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-27 14:46:52 +0100 |
commit | 29844295c53af4dae2f88a62464a596414b4d269 (patch) | |
tree | 817bc48a25174780110e436974157100ddc9e10f /support/blob_repeat.c | |
parent | 8f1e7b94ef72a91d5eeef8d002e9a5239c0c9f24 (diff) | |
download | glibc-29844295c53af4dae2f88a62464a596414b4d269.tar glibc-29844295c53af4dae2f88a62464a596414b4d269.tar.gz glibc-29844295c53af4dae2f88a62464a596414b4d269.tar.bz2 glibc-29844295c53af4dae2f88a62464a596414b4d269.zip |
cheri: Fix capability permissions of PROT_NONE maps in test code
Diffstat (limited to 'support/blob_repeat.c')
-rw-r--r-- | support/blob_repeat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/blob_repeat.c b/support/blob_repeat.c index 2c952906ea..5e5fecac00 100644 --- a/support/blob_repeat.c +++ b/support/blob_repeat.c @@ -151,7 +151,7 @@ allocate_big (size_t total_size, const void *element, size_t element_size, /* Reserve the memory region. If we cannot create the mapping, there is no reason to set up the backing file. */ - void *target = mmap (NULL, total_size, PROT_NONE, + void *target = mmap (NULL, total_size, PROT_NONE | PROT_MAX_RW, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); if (target == MAP_FAILED) return (struct support_blob_repeat) { 0 }; |