sella::util::Privilege Class Reference

List of all members.

Public Types

typedef std::shared_ptr
< Privilege
shared
typedef Privilegeptr

Public Member Functions

 Privilege (const Privilege &other)
Privilegeoperator= (const Privilege &other) throw ()
bool operator== (const Privilege &other) const throw ()
bool operator!= (const Privilege &other) const throw ()
void applyIdentity (void) const throw (PrivilegeException)
void applyEffectiveIdentity (void) const throw (PrivilegeException)
void restoreIdentity (void) const throw (PrivilegeException)
void restoreEffectiveIdentity (void) const throw (PrivilegeException)
void setUID (uid_t &uid, bool setGID=true) throw (PrivilegeException)
void setUID (const std::string &user, bool setGID=true) throw (PrivilegeException)
void setGID (gid_t &gid) throw ()
void setGID (const std::string &group) throw (PrivilegeException)
const uid_t & getUID (void) const throw ()
const uid_t getCurrentUID (void) const throw ()
const uid_t getEffectiveUID (void) const throw ()
const uid_t & getOriginalUID (void) const throw ()
const gid_t & getGID (void) const throw ()
const gid_t getCurrentGID (void) const throw ()
const gid_t getEffectiveGID (void) const throw ()
const gid_t & getOriginalGID (void) const throw ()
bool isRoot (void) const throw ()
bool isRootGroup (void) const throw ()
bool wasRoot (void) const throw ()
bool wasRootGroup (void) const throw ()
void clear (void) throw ()

Static Public Member Functions

static const Privilege::shared shared_ptr (void) throw ()

Detailed Description

Definition at line 28 of file Privilege.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on 20 Nov 2014 for libutil++ by  doxygen 1.6.1