compat_audit.c 689 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #define __32bit_syscall_numbers__
  2. #include <asm/unistd.h>
  3. unsigned sparc32_dir_class[] = {
  4. #include <asm-generic/audit_dir_write.h>
  5. ~0U
  6. };
  7. unsigned sparc32_chattr_class[] = {
  8. #include <asm-generic/audit_change_attr.h>
  9. ~0U
  10. };
  11. unsigned sparc32_write_class[] = {
  12. #include <asm-generic/audit_write.h>
  13. ~0U
  14. };
  15. unsigned sparc32_read_class[] = {
  16. #include <asm-generic/audit_read.h>
  17. ~0U
  18. };
  19. unsigned sparc32_signal_class[] = {
  20. #include <asm-generic/audit_signal.h>
  21. ~0U
  22. };
  23. int sparc32_classify_syscall(unsigned syscall)
  24. {
  25. switch(syscall) {
  26. case __NR_open:
  27. return 2;
  28. case __NR_openat:
  29. return 3;
  30. case __NR_socketcall:
  31. return 4;
  32. case __NR_execve:
  33. return 5;
  34. default:
  35. return 1;
  36. }
  37. }