]>
Commit | Line | Data |
---|---|---|
55e303ae | 1 | <h2>host_security_set_task_token</h2>\r<hr>\r<p>\r<strong>Function</strong> - Change the target task's security token.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>kern_return_t host_security_set_task_token</strong>\r <strong>(host_security_t</strong> <var>host_security</var>,\r <strong>task_t</strong> <var>task</var>,\r <strong>security_token_t</strong> <var>security_token</var>,\r <strong>audit_token_t</strong> <var>audit_token</var>,\r <strong>host_t</strong> <var>host</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt><var>host_security</var>\r<dd>\r[in security send right] The host's security port.\r<p>\r<dt><var>task</var>\r<dd>\r[in task send right] The port for the task for which the token is to be set.\r<p>\r<dt><var>security_token</var>\r<dd>\r[in scalar] The new security token.\r<p>\r<dt><var>audit_token</var>\r<dd>\r[in scalar] The new audit token.\r<p>\r<dt><var>host</var>\r<dd>\r[in host send right] The task's new host-self port.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>host_security_set_task_token</strong> function changes the\rspecified task's security and audit tokens; the new tokens will be\rincluded in all subsequent messages sent from the task. The\rinitial value of a task's security and audit tokens is that of its\rparent.\r<h3>NOTES</h3>\r<p>\rThe host security port is a privileged port given to the system\rbootstrap task for the use of this call.\r<h3>RETURN VALUES</h3>\r<dl>\r<p>\r<dt> <strong>KERN_INVALID_SECURITY</strong>\r<dd>\rThe value of <var>host_security</var> does not specify the security port for the host on which task lies.\r</dl>\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="task_create.html"><strong>task_create</strong></a>,\r<a href="task_info.html"><strong>task_info</strong></a>,\r<a href="mach_msg.html"><strong>mach_msg</strong></a>.\r |