손지언

d

......@@ -2,6 +2,7 @@
#include <linux/module.h>
#include <linux/syscalls.h>
#include <linux/string.h>
#include <linux/sched.h>
#define SYSCALL_TABLE_BASE_ADDR (0x8000fc28)
#define MANAGER_PERMISSION (0xff)
......@@ -11,6 +12,7 @@ unsigned int g_uPrevAP = 0x00;
unsigned int g_uNewAP = MANAGER_PERMISSION;
unsigned int (* sys_write_orig)(int fd, char *byf, size_t count);
//sys_write_orig() 호출 전 pBuF의 내용 수정
unsigned int sys_write_hooked(int nFD, char *pBuf, size_t nCnt){
printk("current process name : %s\n",current->comm);
......
......@@ -30,4 +30,4 @@ __attribute__((section(".modinfo"))) =
"depends=";
MODULE_INFO(srcversion, "7ADE44387F1447D8C4DC319");
MODULE_INFO(srcversion, "A8B6D680BDB7800A900C22D");
......