Function

SecCodeCopyHost

Retrieves the code object for the host of specified guest code.

Declaration

OSStatus SecCodeCopyHost(SecCodeRef guest, SecCSFlags flags, SecCodeRef  _Nullable *host);

Parameters

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 guest parameter.

Return Value

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.

See Also

Guest Management

SecHostRemoveGuest

Removes a guest from a host.

Deprecated
SecHostSelectGuest

Makes the calling thread the proxy for a specified guest.

Deprecated
SecHostSelectedGuest

Retrieves the handle for the guest currently selected for the calling thread.

Deprecated
SecHostSetHostingPort

Tells code signing services that the calling code will directly respond to hosting inquiries over the given port.

Deprecated
SecCodeMapMemory

Asks the kernel to accept the signing information currently attached to a code object and uses it to validate memory page-ins.