Apache Mesos
Namespaces | Functions
su.hpp File Reference
#include <errno.h>
#include <grp.h>
#include <limits.h>
#include <pwd.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <string>
#include <vector>
#include <stout/error.hpp>
#include <stout/none.hpp>
#include <stout/nothing.hpp>
#include <stout/option.hpp>
#include <stout/result.hpp>
#include <stout/try.hpp>
#include <stout/unreachable.hpp>

Go to the source code of this file.

Namespaces

 os
 

Functions

Result< uid_tos::getuid (const Option< std::string > &user=None())
 
Try< Nothingos::setuid (uid_t uid)
 
Result< gid_tos::getgid (const Option< std::string > &user=None())
 
Try< Nothingos::setgid (gid_t gid)
 
Try< std::vector< gid_t > > os::getgrouplist (const std::string &user)
 
Try< Nothingos::setgroups (const std::vector< gid_t > &gids, const Option< uid_t > &uid=None())
 
Result< std::string > os::user (Option< uid_t > uid=None())
 
Try< Nothingos::su (const std::string &user)