From 842b2126854b1af2c3cb5bd8cf1eddfc6b84cdcd Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 3 Aug 2023 10:30:43 +0200 Subject: [PATCH] kernel: Set a SharedMemory object's prot value --- kernel/src/sys/mmap.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/src/sys/mmap.cpp b/kernel/src/sys/mmap.cpp index d9a201b2..80ea465d 100644 --- a/kernel/src/sys/mmap.cpp +++ b/kernel/src/sys/mmap.cpp @@ -50,6 +50,7 @@ Result sys_mmap(Registers*, SyscallArgs args) } shmem = g_shared_memory_map.try_get_ref(shmid); shmem->refs++; + shmem->prot |= params.prot; } u64 address;