Trusted Solaris Developer's Guide

Get and Set Security Attributes

The t6get_attr(3NSL) routine gets the attribute in attr_type from the security attribute structure t6ctl. The return value should be cast to the correct type as described in "Attribute Enumerations".

The t6set_attr(3NSL) routine sets the attribute in attr_type with the value specified in attr in the security attribute structure t6ctl.

void *t6get_attr(t6attr_id_t attr_type,
	const t6attr_t t6ctl);

int t6set_attr(t6attr_id_t attr_type,
	const void *attr,
	t6attr_t t6ctl);