kpf: Add patch to disable Protobox on iOS 16+
This patch disables Protobox, which was introduced in iOS 16 and adds syscall masks (whitelists) to certain system daemons. It also includes a mechanism that makes certain processes crash on sandbox violations, amongst other things.
This PR disables Protobox globally, which fixes several issues with dylib injection and Frida in these processes.
The patchfinding metric is verified working on 16.0 - 17.4b1.
~~This patch appears to be broken on bridgeOS kernels.~~ bridgeOS probably doesn't have protobox
Just check if there is a string with "Protobox" in it in the sandbox kext, if there is not, then it indeed does not have Protobox.
Protobox string exists since bridgeOS 8. The patch still fails on those kernels though.
hm idk then, maybe the string exists but the feature is still unused.