libmoost
|
#include <ownership_posix.hpp>
Public Types | |
typedef int | uid_type |
typedef int | gid_type |
Public Member Functions | |
bool | is_superuser () const |
bool | lookup_user (std::string &name, const uid_type &uid) const |
bool | lookup_group (std::string &name, const gid_type &gid) const |
bool | lookup_uid (uid_type &uid, const std::string &name) const |
bool | lookup_uid (uid_type &uid, gid_type &gid, const std::string &name) const |
bool | lookup_gid (gid_type &gid, const std::string &name) const |
bool | lookup_gid (gid_type &gid, const uid_type &uid) const |
void | set_uid (uid_type uid) |
void | set_effective_uid (uid_type uid) |
uid_type | get_uid () const |
uid_type | get_effective_uid () const |
void | set_gid (gid_type gid) |
void | set_effective_gid (gid_type gid) |
gid_type | get_gid () const |
gid_type | get_effective_gid () const |
Private Types | |
typedef std::vector< char > | buffer_type |
Private Member Functions | |
bool | lookup_user (uid_type uid, buffer_type &buf, struct passwd *pwd) const |
bool | lookup_user (const std::string &name, buffer_type &buf, struct passwd *pwd) const |
bool | lookup_group (gid_type gid, buffer_type &buf, struct group *grp) const |
bool | lookup_group (const std::string &name, buffer_type &buf, struct group *grp) const |
Static Private Member Functions | |
static void | buffer_reserve (buffer_type &buf, int which) |
Definition at line 43 of file ownership_posix.hpp.
typedef std::vector<char> moost::process::detail::ownership::buffer_type [private] |
Definition at line 46 of file ownership_posix.hpp.
typedef int moost::process::detail::ownership::gid_type |
Definition at line 50 of file ownership_posix.hpp.
typedef int moost::process::detail::ownership::uid_type |
Definition at line 49 of file ownership_posix.hpp.
static void moost::process::detail::ownership::buffer_reserve | ( | buffer_type & | buf, |
int | which | ||
) | [inline, static, private] |
gid_type moost::process::detail::ownership::get_effective_gid | ( | ) | const [inline] |
uid_type moost::process::detail::ownership::get_effective_uid | ( | ) | const [inline] |
gid_type moost::process::detail::ownership::get_gid | ( | ) | const [inline] |
uid_type moost::process::detail::ownership::get_uid | ( | ) | const [inline] |
bool moost::process::detail::ownership::is_superuser | ( | ) | const [inline] |
Definition at line 52 of file ownership_posix.hpp.
bool moost::process::detail::ownership::lookup_gid | ( | gid_type & | gid, |
const std::string & | name | ||
) | const [inline] |
Definition at line 114 of file ownership_posix.hpp.
bool moost::process::detail::ownership::lookup_gid | ( | gid_type & | gid, |
const uid_type & | uid | ||
) | const [inline] |
bool moost::process::detail::ownership::lookup_group | ( | std::string & | name, |
const gid_type & | gid | ||
) | const [inline] |
bool moost::process::detail::ownership::lookup_group | ( | gid_type | gid, |
buffer_type & | buf, | ||
struct group * | grp | ||
) | const [inline, private] |
bool moost::process::detail::ownership::lookup_group | ( | const std::string & | name, |
buffer_type & | buf, | ||
struct group * | grp | ||
) | const [inline, private] |
bool moost::process::detail::ownership::lookup_uid | ( | uid_type & | uid, |
const std::string & | name | ||
) | const [inline] |
Definition at line 85 of file ownership_posix.hpp.
bool moost::process::detail::ownership::lookup_uid | ( | uid_type & | uid, |
gid_type & | gid, | ||
const std::string & | name | ||
) | const [inline] |
bool moost::process::detail::ownership::lookup_user | ( | std::string & | name, |
const uid_type & | uid | ||
) | const [inline] |
bool moost::process::detail::ownership::lookup_user | ( | uid_type | uid, |
buffer_type & | buf, | ||
struct passwd * | pwd | ||
) | const [inline, private] |
bool moost::process::detail::ownership::lookup_user | ( | const std::string & | name, |
buffer_type & | buf, | ||
struct passwd * | pwd | ||
) | const [inline, private] |
void moost::process::detail::ownership::set_effective_gid | ( | gid_type | gid | ) | [inline] |
void moost::process::detail::ownership::set_effective_uid | ( | uid_type | uid | ) | [inline] |
void moost::process::detail::ownership::set_gid | ( | gid_type | gid | ) | [inline] |
void moost::process::detail::ownership::set_uid | ( | uid_type | uid | ) | [inline] |