t6get_endpt_mask(3N)
t6get_endpt_mask, t6set_endpt_mask, t6get_endpt_default, t6set_endpt_default - get or set endpoint security attribute mask, get or set endpoint default security attributes
As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.
NAME t6get_endpt_mask, t6set_endpt_mask, t6get_endpt_default, t6set_endpt_default - get or set endpoint security attribute mask, get or set endpoint default security attributes SYNOPSIS cc [ flags ... ] file -lt6 #include <sys/t6attrs.h> int t6get_endpt_mask(int fd, t6mask_t *mask) int t6set_endpt_mask(int fd, t6mask_t mask) int t6get_endpt_default(int fd, t6mask_t mask, t6attr_t attr_ptr) int t6set_endpt_default(int fd, t6mask_t mask, const t6attr_t attr_ptr) DESCRIPTION The security extensions on the communication endpoint include a set of default security attributes that may be applied to outgoing data and an attribute mask that designates which attributes are taken from the endpoint's default attributes and which are taken from the process's effective attributes. By default, data written to an endpoint has associated with it the security attributes of the process that wrote the data. However, a privileged process may change the value of the default attribute mask on an endpoint it had created, and the endpoint's default attributes. t6get_endpt_mask allows a process to obtain the current setting of the default attribute mask for the endpoint specified by fd. The attribute mask is returned in the parameter mask. t6set_endpt_mask allows a process to set the bit values of the default attribute mask for the endpoint specified by fd to the value specified by mask. A bit value of 0 indicates the attribute is taken from the process's effective attributes; and a bit value of 1 indicates the the attribute is taken from the endpoint's default attributes. t6get_endpt_default allows a process to get the current setting of the default attributes of the endpoint specified by fd. mask indicates which attributes are present in the parameter attr_ptr. To access attr_ptr, see t6get_attr(3N) t6set_endpt_default allows a process to set the default attributes of the endpoint specified by fd to the attributes specified by the parameter attr_ptr. mask indicates which attributes are present in the parameter attr_ptr. To set up attr_ptr, see t6set_attr(3N). PRIVILEGES Only a process with the appropriate override privileges can change the endpoint's attribute mask or default attributes. To change an endpoint's default attribute or its mask bit, a process must have the override privilege corresponding to the attribute. The override privilege required to specify a default attribute is implementation specific. RETURN VALUE On successful completion these calls return 0. If either call encounters an error, -1 is returned. SEE ALSO libt6(3N), t6sendto(3N), t6set_attr(3N) SOURCE Trusted Systems Interoperability Group NOTES