#include <admin_rights.hpp>
|
static long | run_as_user (const std::string &user_name) |
| calculates the user id based upon the user configuration parameter More...
|
|
static long | run_as_group (const std::string &group_name) |
| calculates the group id based upon the group configuration parameter More...
|
|
admin_rights: obtains administrative rights for the process
pion::admin_rights::admin_rights |
( |
bool |
use_log = true | ) |
|
constructs object, obtaining administrative rights; will block if another thread has already obtained rights
- Parameters
-
use_log | if false, then no logging will be performed |
References PION_LOG_DEBUG, and PION_LOG_ERROR.
virtual pion::admin_rights::~admin_rights |
( |
| ) |
|
|
inlinevirtual |
destructor releases administrative rights
void pion::admin_rights::release |
( |
void |
| ) |
|
long pion::admin_rights::run_as_group |
( |
const std::string & |
group_name | ) |
|
|
static |
calculates the group id based upon the group configuration parameter
long pion::admin_rights::run_as_user |
( |
const std::string & |
user_name | ) |
|
|
static |
calculates the user id based upon the user configuration parameter
The documentation for this class was generated from the following files: