Trusted Solaris Developer's Guide

Clear Effective Set

The example uses set_effective_priv(3TSOL) to clear the effective set at the beginning of the application. The PRIV_SET parameter clears the effective privilege set, and the zero (0) indicates there is no parameter list of privilege IDs.

if (set_effective_priv(PRIV_SET, 0) == -1)
	perror("Cannot clear effective privileges");