CodeDirectoryHash
A constraint that matches the hash of a code directory of a code file or of a running or launching process.
Declaration
struct CodeDirectoryHashOverview
In the context of ProcessCodeRequirement and LaunchCodeRequirement this constraint matches the hash of the chosen code directory for the running process, or the process the system is launching.
In the context of OnDiskCodeRequirement this constraint matches the hash of the code directory for the specified SecStaticCodeRef that best matches the current architecture. The best match is different for processes running on Intel and Apple silicon, including an Intel process running on Apple silicon with Rosetta. To reliably identify a code file using its code directory hash, use in(_:) and supply a list of the known code directory hash values.