diff --git a/memory_security/src/jit_memory.c b/memory_security/src/jit_memory.c index e34b6ab0cbe380bf5841bdb76be3d6e1d3339a84..511351a39f44caf647975d31a5337f9efd70ffdd 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;