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)
 
template<class F >
static void runElevated (F &&f)
 

Detailed Description

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

Member Function Documentation

void nfd::PrivilegeHelper::drop ( )
static

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

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

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

template<class F >
static void nfd::PrivilegeHelper::runElevated ( F &&  f)
inlinestatic

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