X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/e3d460c9de4426da6c630c3ae3f46173a99f82d8..dd5fb164cf5b32c462296bc65e289e100f74b59a:/OSX/libsecurity_codesigning/lib/CSCommonPriv.h diff --git a/OSX/libsecurity_codesigning/lib/CSCommonPriv.h b/OSX/libsecurity_codesigning/lib/CSCommonPriv.h index 29299cb8..d527dd37 100644 --- a/OSX/libsecurity_codesigning/lib/CSCommonPriv.h +++ b/OSX/libsecurity_codesigning/lib/CSCommonPriv.h @@ -86,7 +86,21 @@ enum { kSecCodeMagicByte = 0xfa /* shared first byte */ }; - + +/*! + @typedef SecCodeExecSegFlags + */ +typedef CF_OPTIONS(uint32_t, SecCodeExecSegFlags) { + kSecCodeExecSegMainBinary = 0x0001, /* exec seg belongs to main binary */ + + // Entitlements + kSecCodeExecSegAllowUnsigned = 0x0010, /* allow unsigned pages (for debugging) */ + kSecCodeExecSegDebugger = 0x0020, /* main binary is debugger */ + kSecCodeExecSegJit = 0x0040, /* JIT enabled */ + kSecCodeExecSegSkipLibraryVal = 0x0080, /* skip library validation */ + kSecCodeExecSegCanLoadCdHash = 0x0100, /* can bless cdhash for execution */ + kSecCodeExecSegCanExecCdHash = 0x0200, /* can execute blessed cdhash */ +}; /* The current (fixed) size of a cdhash in the system.