SU
if(su_user && !SU(a->ac_flag))
if(!SU(a->ac_flag))
static char *SU = "/etc/sulogin"; /* Super-user program for single user */
(void) execle(SU, SU, "-", (char *)0, glob_envp);
console(B_TRUE, "execle of %s failed: %s\n", SU,
if ((perm & SU) && secpolicy_power_mgmt(cr) == 0) /* privileged? */
INWHO, NODIP, NODEP, SU},
0, 0, 0, SU},
{PM_START_PM, "PM_START_PM", 1, NOSTRUCT, 0, 0, 0, SU},
{PM_STOP_PM, "PM_STOP_PM", 1, NOSTRUCT, 0, 0, 0, SU},
{PM_RESET_PM, "PM_RESET_PM", 1, NOSTRUCT, 0, 0, 0, SU},
(SU | SG)},
INWHO, DIP, NODEP, SU},
INWHO | INDATAINT, NODIP, NODEP, SU},
{PM_IDLE_DOWN, "PM_IDLE_DOWN", 1, NOSTRUCT, 0, 0, 0, SU},
DIP, DEP, SU},
INWHO | INDATASTRING, NODIP, DEP, SU},
{PM_START_CPUPM, "PM_START_CPUPM", 1, NOSTRUCT, 0, 0, 0, SU},
0, 0, SU},
0, 0, SU},
{PM_STOP_CPUPM, "PM_STOP_CPUPM", 1, NOSTRUCT, 0, 0, 0, SU},
0, 0, 0, SU},
{PM_START_AUTOS3, "PM_START_AUTOS3", 1, NOSTRUCT, 0, 0, 0, SU},
{PM_STOP_AUTOS3, "PM_STOP_AUTOS3", 1, NOSTRUCT, 0, 0, 0, SU},
{PM_ENABLE_S3, "PM_ENABLE_S3", 1, NOSTRUCT, 0, 0, 0, SU},
{PM_DISABLE_S3, "PM_DISABLE_S3", 1, NOSTRUCT, 0, 0, 0, SU},
{PM_ENTER_S3, "PM_ENTER_S3", 1, NOSTRUCT, 0, 0, 0, SU},
{PM_SEARCH_LIST, "PM_SEARCH_LIST", 1, PM_SRCH, 0, 0, 0, SU},
0, 0, SU},
0, 0, SU},
0, 0, SU},
if ((perm & SU) && secpolicy_power_mgmt(cr) == 0) /* privileged? */
if (!srn_perms(SU | SG, srn.srn_cred[clone])) {