From ab7694945827b823f2e6f4d52cba1d29b854bae9 Mon Sep 17 00:00:00 2001 From: carmincol Date: Wed, 25 Jun 2025 15:57:18 +0800 Subject: [PATCH] update restritction 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..511351a 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