4 ms·
> Some investigation revealed that csops is a system call that is unique to the Apple operating system and can be used to check the signature that is written in
by saagarjha 9y ago
> Some investigation revealed that csops is a system call that is unique to the Apple operating system and can be used to check the signature that is written into a memory page by the operating system.
Close. That's one thing that csops can do, but in this case it's being used to extract the entitlements from the binary (CS_OPS_ENTITLEMENTS_BLOB == 7).
> I wasn’t sure what the memory addresses that were referenced in the mprotect call actually corresponded to or what the best way to figure it would be.
You could fire it up in LLDB and break on mprotect…