compat_audit.c 647 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include <asm/unistd.h>
  2. unsigned int parisc32_dir_class[] = {
  3. #include <asm-generic/audit_dir_write.h>
  4. ~0U
  5. };
  6. unsigned int parisc32_chattr_class[] = {
  7. #include <asm-generic/audit_change_attr.h>
  8. ~0U
  9. };
  10. unsigned int parisc32_write_class[] = {
  11. #include <asm-generic/audit_write.h>
  12. ~0U
  13. };
  14. unsigned int parisc32_read_class[] = {
  15. #include <asm-generic/audit_read.h>
  16. ~0U
  17. };
  18. unsigned int parisc32_signal_class[] = {
  19. #include <asm-generic/audit_signal.h>
  20. ~0U
  21. };
  22. int parisc32_classify_syscall(unsigned syscall)
  23. {
  24. switch (syscall) {
  25. case __NR_open:
  26. return 2;
  27. case __NR_openat:
  28. return 3;
  29. case __NR_execve:
  30. return 5;
  31. default:
  32. return 1;
  33. }
  34. }