Function

SecTaskCreateWithAuditToken

Creates a task object for the task that sent the Mach message represented by the audit token.

Declaration

SecTaskRef SecTaskCreateWithAuditToken(CFAllocatorRef allocator, audit_token_t token);

Parameters

allocator

An allocator. Pass NULL to use the default.

token

The audit token of a Mach message.

Return Value

A new task, or NULL on error. Call the CFRelease function to free this task's memory when you are done with it.

See Also

Tasks

SecTaskCreateFromSelf

Creates a task object for the current task.

SecTaskRef

The Core Foundation type representing a task.

SecTaskGetTypeID

Returns the unique identifier of the opaque type to which a task object belongs.

SecTaskCopySigningIdentifier

Returns the value of the code signing identifier.

SecTaskCopyValueForEntitlement

Returns the value of a single entitlement for the represented task.

SecTaskCopyValuesForEntitlements

Returns the values of multiple entitlements for the represented task.