Trusted Solaris Developer's Guide

Get Description Text for Privilege ID

The get_priv_text(3TSOL) routine returns the description text for the specified priv_id. The priv_name(4) man page lists the description text for all privileges in the system.

	string = get_priv_text(priv_id);
	printf("%s\n", string);

The printf statement prints the following:


Allows a process to write a file or directory whose 
permission bits or ACL do not allow the process write permission.