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 NFD_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;
represents a serious seteuid/gid failure
Error(const std::string &what)
const char * what() const
static void runElevated(F &&f)
static void initialize(const std::string &userName, const std::string &groupName)
#define NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...