version 1.68, 2006/11/10 18:14:58
|
version 1.69, 2007/05/30 20:41:28
|
|
|
#endif | #endif |
| |
/** | /** |
Changes the process user context to the specified user and group ID. |
Changes the process user context to the specified user and group. |
|
IMPORTANT: This method uses non-reentrant functions and should only |
|
be called in a single-threaded program. |
|
@param userName User name to set as the process user context. |
@param uid User ID to set as the process user context. | @param uid User ID to set as the process user context. |
@param gid Group ID to set as the process group context. | @param gid Group ID to set as the process group context. |
@return True if the user context is successfully changed, | @return True if the user context is successfully changed, |
false otherwise. | false otherwise. |
*/ | */ |
#ifndef PEGASUS_OS_OS400 | #ifndef PEGASUS_OS_OS400 |
static Boolean changeUserContext( |
static Boolean changeUserContext_SingleThreaded( |
|
const char* userName, |
const PEGASUS_UID_T& uid, | const PEGASUS_UID_T& uid, |
const PEGASUS_GID_T& gid); | const PEGASUS_GID_T& gid); |
#endif | #endif |