nfd::PrivilegeHelper Class Reference

#include <core/privilege-helper.hpp>

Classes

class  Error
 represents a serious seteuid/gid failure More...
 

Static Public Member Functions

static void drop ()
 
static void initialize (const std::string &userName, const std::string &groupName)
 
static void runElevated (function< void()> f)
 

Detailed Description

Definition at line 35 of file privilege-helper.hpp.

Member Function Documentation

void nfd::PrivilegeHelper::drop ( )
static

Definition at line 143 of file privilege-helper.cpp.

void nfd::PrivilegeHelper::initialize ( const std::string &  userName,
const std::string &  groupName 
)
static

Definition at line 47 of file privilege-helper.cpp.

void nfd::PrivilegeHelper::runElevated ( function< void()>  f)
static

Definition at line 198 of file privilege-helper.cpp.