From 2e196a56099645710e96073bae81ec9c83fdc7b0 Mon Sep 17 00:00:00 2001 From: carmincol Date: Wed, 25 Jun 2025 16:04:53 +0800 Subject: [PATCH] update restriction for EXEC Signed-off-by: carmincol --- memory_security/src/jit_memory.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/memory_security/src/jit_memory.c b/memory_security/src/jit_memory.c index e34b6ab..23c7e3b 100644 --- a/memory_security/src/jit_memory.c +++ b/memory_security/src/jit_memory.c @@ -56,12 +56,7 @@ void check_jit_memory(struct task_struct *task, unsigned long cookie, unsigned l return; unsigned long start = *err; - if (prot & PROT_EXEC) { - jit_memory_log_info("can not apply prot_exec"); - *err = -EACCES; - vm_munmap(start, size); - return; - } + // check for apply EXEC mem has been removed here if (!(flag & MAP_JIT)) return; -- Gitee