Advertisement
Quad5Ny

OS X CSR/BooterConfig Info

Oct 4th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. Source:
  2. https://opensource.apple.com/source/xnu/xnu-2782.40.9/bsd/sys/csr.h
  3. https://opensource.apple.com/source/xnu/xnu-2782.40.9/pexpert/pexpert/i386/boot.h
  4. http://osxarena.com/2015/10/guide-details-apples-system-integrity-protection-sip-for-hackintosh/
  5.  
  6. -------------------------------------------------------------------------------------
  7. -------------------------------------------------------------------------------------
  8.  
  9. /* Rootless configuration flags */
  10. #define CSR_ALLOW_UNTRUSTED_KEXTS (1 << 0)
  11. #define CSR_ALLOW_UNRESTRICTED_FS (1 << 1)
  12. #define CSR_ALLOW_TASK_FOR_PID (1 << 2)
  13. #define CSR_ALLOW_KERNEL_DEBUGGER (1 << 3)
  14. #define CSR_ALLOW_APPLE_INTERNAL (1 << 4)
  15. #define CSR_ALLOW_DESTRUCTIVE_DTRACE (1 << 5) /* name deprecated */
  16. #define CSR_ALLOW_UNRESTRICTED_DTRACE (1 << 5)
  17. #define CSR_ALLOW_UNRESTRICTED_NVRAM (1 << 6)
  18.  
  19. #define CSR_VALID_FLAGS (CSR_ALLOW_UNTRUSTED_KEXTS | \
  20. CSR_ALLOW_UNRESTRICTED_FS | \
  21. CSR_ALLOW_TASK_FOR_PID | \
  22. CSR_ALLOW_KERNEL_DEBUGGER | \
  23. CSR_ALLOW_APPLE_INTERNAL | \
  24. CSR_ALLOW_UNRESTRICTED_DTRACE | \
  25. CSR_ALLOW_UNRESTRICTED_NVRAM)
  26.  
  27. -------------------------------------------------------------------------------------
  28. -------------------------------------------------------------------------------------
  29.  
  30. /* Boot argument structure - passed into Mach kernel at boot time.
  31. * "Revision" can be incremented for compatible changes
  32. */
  33. #define kBootArgsRevision 0
  34. #define kBootArgsVersion 2
  35.  
  36. /* Snapshot constants of previous revisions that are supported */
  37. #define kBootArgsVersion1 1
  38. #define kBootArgsVersion2 2
  39. #define kBootArgsRevision2_0 0
  40.  
  41. #define kBootArgsEfiMode32 32
  42. #define kBootArgsEfiMode64 64
  43.  
  44. /* Bitfields for boot_args->flags */
  45. #define kBootArgsFlagRebootOnPanic (1 << 0)
  46. #define kBootArgsFlagHiDPI (1 << 1)
  47. #define kBootArgsFlagBlack (1 << 2)
  48. #define kBootArgsFlagCSRActiveConfig (1 << 3)
  49. #define kBootArgsFlagCSRPendingConfig (1 << 4)
  50. #define kBootArgsFlagCSRBoot (1 << 5)
  51. #define kBootArgsFlagBlackBg (1 << 6)
  52. #define kBootArgsFlagLoginUI (1 << 7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement