52 explicit Root(
bool change_group =
true ) ;
60 static void init(
const std::string &
nobody ) ;
78 static Root * m_this ;
79 static bool m_initialised ;
Root(bool change_group=true)
Constructor.
A noncopyable base class (a la boost).
An empty structure that is used to indicate a signal-safe, reentrant implementation.
static Identity nobody()
Returns the 'nobody' identity.
A very low-level interface to getpwnam() and the get/set/e/uid/gid functions.
A class which acquires the process's special privileges on construction and releases them on destruct...
static Identity start(SignalSafe)
A signal-safe alternative to construction.
static void stop(SignalSafe, Identity)
A signal-safe alternative to destruction.
static void init(const std::string &nobody)
Initialises this class on process start-up by releasing root or suid privileges.