SecCodeCopyHost(_:_:_:)
Retrieves the code object for the host of specified guest code.
Declaration
func SecCodeCopyHost(_ guest: SecCode, _ flags: SecCSFlags, _ host: UnsafeMutablePointer<SecCode?>) -> OSStatusParameters
- guest:
A valid code object representing code running on the system as the guest of other code.
- flags:
Optional flags; see Seccsflags for possible values. Pass Kseccsdefaultflags for standard behavior.
- host:
On return, the code object of the host of the code specified in the
guestparameter.
Return Value
A result code. See Code Signing Services Result Codes.
Discussion
Host code acts as the supervisor and controller of its guest code and is the ultimate authority on the dynamic validity and status of its guests.