The taskttyname variable contains the name of the TTY device (that is, the terminal) associated to the secured task launched by pbrun, or the session associated with pbksh/pbsh if iologging is on.
This variable is populated when the secured task is executed, and has no value until a session starts and therefore cannot be used in the policy. This variable is shown in the Finish event of the eventlog only when a logserver is used. It can also be used in the new 7.0 syslog formatting settings, syslogsession_start_format and syslogsession_ finish_format.
For pbksh and pbsh, this variable is only populated if iologging is turned on.
A string that contains a TTY name. This is a read-only variable.