26 #ifndef NFD_CORE_PRIVILEGE_HELPER_HPP 27 #define NFD_CORE_PRIVILEGE_HELPER_HPP 56 return m_whatMessage.c_str();
60 const std::string m_whatMessage;
64 initialize(
const std::string& userName,
const std::string& groupName);
78 #ifdef HAVE_PRIVILEGE_DROP_AND_ELEVATE 79 static uid_t s_normalUid;
80 static gid_t s_normalGid;
82 static uid_t s_privilegedUid;
83 static gid_t s_privilegedGid;
84 #endif // HAVE_PRIVILEGE_DROP_AND_ELEVATE 89 #endif // NFD_CORE_PRIVILEGE_HELPER_HPP
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
static void initialize(const std::string &userName, const std::string &groupName)
static void runElevated(function< void()> f)
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
represents a serious seteuid/gid failure
const char * what() const
Error(const std::string &what)