From 29844295c53af4dae2f88a62464a596414b4d269 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 25 Oct 2022 09:14:46 +0100 Subject: cheri: Fix capability permissions of PROT_NONE maps in test code --- support/blob_repeat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'support/blob_repeat.c') 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 }; -- cgit v1.2.3-70-g09d2