Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Source:
- https://opensource.apple.com/source/xnu/xnu-2782.40.9/bsd/sys/csr.h
- https://opensource.apple.com/source/xnu/xnu-2782.40.9/pexpert/pexpert/i386/boot.h
- http://osxarena.com/2015/10/guide-details-apples-system-integrity-protection-sip-for-hackintosh/
- -------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------
- /* Rootless configuration flags */
- #define CSR_ALLOW_UNTRUSTED_KEXTS (1 << 0)
- #define CSR_ALLOW_UNRESTRICTED_FS (1 << 1)
- #define CSR_ALLOW_TASK_FOR_PID (1 << 2)
- #define CSR_ALLOW_KERNEL_DEBUGGER (1 << 3)
- #define CSR_ALLOW_APPLE_INTERNAL (1 << 4)
- #define CSR_ALLOW_DESTRUCTIVE_DTRACE (1 << 5) /* name deprecated */
- #define CSR_ALLOW_UNRESTRICTED_DTRACE (1 << 5)
- #define CSR_ALLOW_UNRESTRICTED_NVRAM (1 << 6)
- #define CSR_VALID_FLAGS (CSR_ALLOW_UNTRUSTED_KEXTS | \
- CSR_ALLOW_UNRESTRICTED_FS | \
- CSR_ALLOW_TASK_FOR_PID | \
- CSR_ALLOW_KERNEL_DEBUGGER | \
- CSR_ALLOW_APPLE_INTERNAL | \
- CSR_ALLOW_UNRESTRICTED_DTRACE | \
- CSR_ALLOW_UNRESTRICTED_NVRAM)
- -------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------
- /* Boot argument structure - passed into Mach kernel at boot time.
- * "Revision" can be incremented for compatible changes
- */
- #define kBootArgsRevision 0
- #define kBootArgsVersion 2
- /* Snapshot constants of previous revisions that are supported */
- #define kBootArgsVersion1 1
- #define kBootArgsVersion2 2
- #define kBootArgsRevision2_0 0
- #define kBootArgsEfiMode32 32
- #define kBootArgsEfiMode64 64
- /* Bitfields for boot_args->flags */
- #define kBootArgsFlagRebootOnPanic (1 << 0)
- #define kBootArgsFlagHiDPI (1 << 1)
- #define kBootArgsFlagBlack (1 << 2)
- #define kBootArgsFlagCSRActiveConfig (1 << 3)
- #define kBootArgsFlagCSRPendingConfig (1 << 4)
- #define kBootArgsFlagCSRBoot (1 << 5)
- #define kBootArgsFlagBlackBg (1 << 6)
- #define kBootArgsFlagLoginUI (1 << 7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement