#include <privilege-helper.hpp>
Classes | |
class | Error |
PrivilegeHelper::Error represents a serious seteuid/gid failure and should only be caught by main in as part of a graceful program termination. More... | |
Static Public Member Functions | |
static void | initialize (const std::string &userName, const std::string &groupName) |
static void | drop () |
static void | runElevated (function< void()> f) |
Definition at line 34 of file privilege-helper.hpp.
|
static |
Definition at line 132 of file privilege-helper.cpp.
References NFD_LOG_INFO, and NFD_LOG_TRACE.
Referenced by runElevated().
|
static |
Definition at line 42 of file privilege-helper.cpp.
References NFD_LOG_TRACE.
Referenced by nfd::general::onConfig().
|
static |
Definition at line 179 of file privilege-helper.cpp.
References drop().