Lines Matching defs:user
47 #include "user.hpp"
233 check_user(const std::string& user, const vars_map& config)
235 if (user == "root") {
236 if (!tools::user::is_root())
240 } else if (user == "unprivileged") {
241 if (tools::user::is_root()) {
243 "unprivileged-user");
245 return "Requires an unprivileged user and the "
246 "'unprivileged-user' configuration variable is not set";
250 (void)tools::user::get_user_ids(unprivileged_user);
253 return "Failed to get information for user " +
260 throw std::runtime_error("Invalid value '" + user + "' for property "
261 "require.user");
290 else if (name == "require.user")
306 const vars_map::const_iterator user = metadata.find(
307 "require.user");
308 if (user == metadata.end())
311 if ((*user).second == "unprivileged") {
312 if (tools::user::is_root()) {
314 "unprivileged-user");
316 return tools::user::get_user_ids((*iter).second);