diff --git a/memory_security/include/jit_memory_log.h b/memory_security/include/jit_memory_log.h index 647da0b2f468e02dc2e97a4e0084db4d36fa085f..cfa367093fcb5e684c60c6c0c445b94b467d0cd7 100644 --- a/memory_security/include/jit_memory_log.h +++ b/memory_security/include/jit_memory_log.h @@ -13,10 +13,10 @@ #define JIT_MEMORY_ERROR_TAG "E" #define jit_memory_log_info(fmt, args...) \ - pr_info("[%s/%s]%s: " fmt "\n", JIT_MEMORY_INFO_TAG, JIT_MEMORY_TAG, \ + pr_info("[%s/%s]%s: JITINFO " fmt "\n", JIT_MEMORY_INFO_TAG, JIT_MEMORY_TAG, \ __func__, ##args) #define jit_memory_log_error(fmt, args...) \ - pr_err("[%s/%s]%s: " fmt "\n", JIT_MEMORY_ERROR_TAG, JIT_MEMORY_TAG, \ + pr_err("[%s/%s]%s: JITERROR " fmt "\n", JIT_MEMORY_ERROR_TAG, JIT_MEMORY_TAG, \ __func__, ##args) #endif /* _JIT_MEMORY_LOG_H */ \ No newline at end of file diff --git a/memory_security/src/jit_memory.c b/memory_security/src/jit_memory.c index 1e72b70a2fa032fbb4c5e3a450d0ff578261b096..0fc0bee268878a5715dfadaf1db3af6386f595a8 100644 --- a/memory_security/src/jit_memory.c +++ b/memory_security/src/jit_memory.c @@ -51,7 +51,7 @@ void check_jit_memory(struct task_struct *task, unsigned long cookie, unsigned l unsigned long start = *err; if (prot & PROT_EXEC) { - jit_memory_log_info("JITINFO can not apply prot_exec"); + jit_memory_log_info("can not apply prot_exec"); *err = -EACCES; vm_munmap(start, size); return; @@ -75,7 +75,6 @@ void delete_jit_memory(struct task_struct *task, unsigned long start, unsigned l { if (!jit_avc_has_perm(SECCLASS_JIT_MEMORY, JIT_MEMORY__EXEC_MEM_CTRL, task)) return; - jit_memory_log_info("JITINFO delete jit memory"); struct list_head *head = (find_process_jit_space(&root_tree, task->pid).head); if (head != NULL) {