손지언

d

...@@ -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);
......
...@@ -30,4 +30,4 @@ __attribute__((section(".modinfo"))) = ...@@ -30,4 +30,4 @@ __attribute__((section(".modinfo"))) =
30 "depends="; 30 "depends=";
31 31
32 32
33 -MODULE_INFO(srcversion, "7ADE44387F1447D8C4DC319"); 33 +MODULE_INFO(srcversion, "A8B6D680BDB7800A900C22D");
......