Advertisement
micromike

hook_function_addr.h

Jan 5th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.55 KB | None | 0 0
  1. #ifndef HOOK_FUNCTION_PTR
  2. #define HOOK_FUNCTION_PTR
  3.  
  4. /* copy from fs/exec.c */
  5. struct user_arg_ptr {
  6.     union {
  7.         const char __user *const __user *native;
  8.     } ptr;
  9. };
  10.  
  11.  
  12. #define SYS_CALL_TABLE_ADDR \
  13. (unsigned long*)0xc16390a0
  14.  
  15. #define DO_EXECVE_ADDR \
  16. (int (*)(const char *, const char __user *const __user *, const char __user *const __user *))0xc116b330
  17.  
  18. #define DO_EXECVE_COMMON_ADDR \
  19. (int (*)(const char *, struct user_arg_ptr argv, struct user_arg_ptr envp))0xc116b080
  20.  
  21. #define PUTNAME_ADDR \
  22. (void (*)(struct filename *))0xc1171cc0
  23.  
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement