pm_is_super_user(3K) SDK R4.11 pm_is_super_user(3K)
NAME
pmissuperuser - determine whether calling process has an effective
uid of 0.
SYNOPSIS
#include "/usr/src/uts/aviion/ii/ipm.h"
booleantype pmissuperuser ()
DESCRIPTION
This routine determines whether the calling process has an effective
uid of 0, which on a traditional DG/UX system is superuser. If so,
it notifies the kernel that the process has used superuser permission
so it can be recorded for accounting information.
NOTE: The pm_is_super_user.3k routine might not produce the desired
effect on a system with DG/UX information security, because the
routine does not check for appropriate privilege; rather, it checks
only to see whether the caller's effective uid is 0.
DIAGNOSTICS
Return Value
TRUE Caller has an effective uid of 0.
FALSE Caller does not have an effective uid of 0.
Errors
None.
Abort Conditions
None.
SEE ALSO
processmanagement(3K).
Programming in the DG/UX Kernel Environment.
Licensed material--property of copyright holder(s)