protlib::setuid Class Reference
[Thread-safe setuid program support]

Thread-safe setuid. More...

#include <source/ariba/utility/transport/tcpip/protlib/setuid.h>

Collaboration diagram for protlib::setuid:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void init ()
 initialize setuid
static void end ()
 cleanup setuid resources
static void on ()
 turn on setuid mode
static void off ()
 turn off setuid mode

Static Private Attributes

static bool is_init = false
 init state
static pthread_mutex_t mutex
 setuid mutex
static uint32 count = 0
 setuid counter
static uid_t file_userid = 65534
 file user ID
static string file_username = "nobody"
 file user name
static uid_t real_userid = 65534
 real user ID
static string real_username = "nobody"
 real user name
static bool is_setuid = true
 are we using setuid?


Detailed Description

Thread-safe setuid.

This class provieds class methods for changing the effective user ID of the current process.

Definition at line 57 of file setuid.h.


The documentation for this class was generated from the following files:

Generated on Fri Aug 14 23:39:53 2009 for Ariba by  doxygen 1.5.8