26 #ifndef NFD_DAEMON_COMMON_PRIVILEGE_HELPER_HPP 27 #define NFD_DAEMON_COMMON_PRIVILEGE_HELPER_HPP 55 return m_whatMessage.data();
59 const std::string m_whatMessage;
63 initialize(
const std::string& userName,
const std::string& groupName);
88 #ifdef HAVE_PRIVILEGE_DROP_AND_ELEVATE 89 static uid_t s_normalUid;
90 static gid_t s_normalGid;
92 static uid_t s_privilegedUid;
93 static gid_t s_privilegedGid;
94 #endif // HAVE_PRIVILEGE_DROP_AND_ELEVATE 99 #endif // NFD_DAEMON_COMMON_PRIVILEGE_HELPER_HPP
const char * what() const
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
static void runElevated(F &&f)
static void initialize(const std::string &userName, const std::string &groupName)
#define PUBLIC_WITH_TESTS_ELSE_PRIVATE
represents a serious seteuid/gid failure
Error(const std::string &what)