Function - Change the target task's security token.
kern_return_t host_security_set_task_token (host_security_t host_security, task_t task, security_token_t security_token, audit_token_t audit_token, host_t host);
The host_security_set_task_token function changes the specified task's security and audit tokens; the new tokens will be included in all subsequent messages sent from the task. The initial value of a task's security and audit tokens is that of its parent.
The host security port is a privileged port given to the system bootstrap task for the use of this call.
Functions: task_create, task_info, mach_msg.