Showing
4 changed files
with
3 additions
and
1 deletions
... | @@ -2,6 +2,7 @@ | ... | @@ -2,6 +2,7 @@ |
2 | #include <linux/module.h> | 2 | #include <linux/module.h> |
3 | #include <linux/syscalls.h> | 3 | #include <linux/syscalls.h> |
4 | #include <linux/string.h> | 4 | #include <linux/string.h> |
5 | +#include <linux/sched.h> | ||
5 | 6 | ||
6 | #define SYSCALL_TABLE_BASE_ADDR (0x8000fc28) | 7 | #define SYSCALL_TABLE_BASE_ADDR (0x8000fc28) |
7 | #define MANAGER_PERMISSION (0xff) | 8 | #define MANAGER_PERMISSION (0xff) |
... | @@ -11,6 +12,7 @@ unsigned int g_uPrevAP = 0x00; | ... | @@ -11,6 +12,7 @@ unsigned int g_uPrevAP = 0x00; |
11 | unsigned int g_uNewAP = MANAGER_PERMISSION; | 12 | unsigned int g_uNewAP = MANAGER_PERMISSION; |
12 | unsigned int (* sys_write_orig)(int fd, char *byf, size_t count); | 13 | unsigned int (* sys_write_orig)(int fd, char *byf, size_t count); |
13 | 14 | ||
15 | + | ||
14 | //sys_write_orig() 호출 전 pBuF의 내용 수정 | 16 | //sys_write_orig() 호출 전 pBuF의 내용 수정 |
15 | unsigned int sys_write_hooked(int nFD, char *pBuf, size_t nCnt){ | 17 | unsigned int sys_write_hooked(int nFD, char *pBuf, size_t nCnt){ |
16 | printk("current process name : %s\n",current->comm); | 18 | printk("current process name : %s\n",current->comm); | ... | ... |
No preview for this file type
No preview for this file type
-
Please register or login to post a comment