nfd::PrivilegeHelper Class Reference

#include <daemon/common/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

◆ drop()

void nfd::PrivilegeHelper::drop ( )
static

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

◆ initialize()

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

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

◆ runElevated()

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

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