NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::PrivilegeHelper Class Reference

#include <privilege-helper.hpp>

Classes

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

Static Public Member Functions

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

Public Attributes

NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE __pad0__: static void raise()
 

Detailed Description

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

Member Function Documentation

◆ initialize()

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

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

References NFD_LOG_TRACE.

Referenced by nfd::general::onConfig(), and nfd::PrivilegeHelper::Error::what().

◆ drop()

void nfd::PrivilegeHelper::drop ( )
static

◆ runElevated()

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

Member Data Documentation

◆ __pad0__

NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE nfd::PrivilegeHelper::__pad0__

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


The documentation for this class was generated from the following files: