libmoost
moost::process::detail::ownership Class Reference

#include <ownership_posix.hpp>

List of all members.

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)

Detailed Description

Definition at line 43 of file ownership_posix.hpp.


Member Typedef Documentation

typedef std::vector<char> moost::process::detail::ownership::buffer_type [private]

Definition at line 46 of file ownership_posix.hpp.

Definition at line 50 of file ownership_posix.hpp.

Definition at line 49 of file ownership_posix.hpp.


Member Function Documentation

static void moost::process::detail::ownership::buffer_reserve ( buffer_type buf,
int  which 
) [inline, static, private]

Definition at line 203 of file ownership_posix.hpp.

Here is the caller graph for this function:

Definition at line 197 of file ownership_posix.hpp.

Here is the caller graph for this function:

Definition at line 167 of file ownership_posix.hpp.

Here is the caller graph for this function:

Definition at line 192 of file ownership_posix.hpp.

Here is the caller graph for this function:

Definition at line 162 of file ownership_posix.hpp.

Here is the caller graph for this function:

Definition at line 52 of file ownership_posix.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

bool moost::process::detail::ownership::lookup_gid ( gid_type gid,
const uid_type uid 
) const [inline]

Definition at line 128 of file ownership_posix.hpp.

Here is the call graph for this function:

bool moost::process::detail::ownership::lookup_group ( std::string &  name,
const gid_type gid 
) const [inline]

Definition at line 71 of file ownership_posix.hpp.

Here is the caller graph for this function:

bool moost::process::detail::ownership::lookup_group ( gid_type  gid,
buffer_type buf,
struct group *  grp 
) const [inline, private]

Definition at line 267 of file ownership_posix.hpp.

Here is the call graph for this function:

bool moost::process::detail::ownership::lookup_group ( const std::string &  name,
buffer_type buf,
struct group *  grp 
) const [inline, private]

Definition at line 293 of file ownership_posix.hpp.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

bool moost::process::detail::ownership::lookup_uid ( uid_type uid,
gid_type gid,
const std::string &  name 
) const [inline]

Definition at line 99 of file ownership_posix.hpp.

Here is the call graph for this function:

bool moost::process::detail::ownership::lookup_user ( std::string &  name,
const uid_type uid 
) const [inline]

Definition at line 57 of file ownership_posix.hpp.

Here is the caller graph for this function:

bool moost::process::detail::ownership::lookup_user ( uid_type  uid,
buffer_type buf,
struct passwd *  pwd 
) const [inline, private]

Definition at line 215 of file ownership_posix.hpp.

Here is the call graph for this function:

bool moost::process::detail::ownership::lookup_user ( const std::string &  name,
buffer_type buf,
struct passwd *  pwd 
) const [inline, private]

Definition at line 241 of file ownership_posix.hpp.

Here is the call graph for this function:

Definition at line 182 of file ownership_posix.hpp.

Here is the caller graph for this function:

Definition at line 152 of file ownership_posix.hpp.

Here is the caller graph for this function:

Definition at line 172 of file ownership_posix.hpp.

Here is the caller graph for this function:

Definition at line 142 of file ownership_posix.hpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following file: