NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nfd::PrivilegeHelper Class Reference

#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)
 

Detailed Description

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

Member Function Documentation

void nfd::PrivilegeHelper::drop ( )
static

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

References NFD_LOG_INFO, and NFD_LOG_TRACE.

Referenced by runElevated().

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

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

References NFD_LOG_TRACE.

Referenced by nfd::general::onConfig().

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

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

References drop().


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