libutil++  1.9.3
 All Classes Functions Variables
Public Types | Public Member Functions | Static Public Member Functions | List of all members
sella::util::Privilege Class Reference

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 =delete throw ()
 
bool operator!= (const Privilege &other) const =delete 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 ()
 
void applyCapabilities (bool retain=true) const throw (PrivilegeException)
 
void clearRetain (void) const throw (PrivilegeException)
 
bool setAll (void) throw ()
 
bool setCapability (cap_value_t cap) throw ()
 
bool setChown (void) throw ()
 
bool setSetGid (void) throw ()
 
bool setSetUid (void) throw ()
 
bool setProcessCapability (void) throw ()
 
bool setLinuxImmutable (void) throw ()
 
bool setNetBroadcast (void) throw ()
 
bool setNetAdmin (void) throw ()
 
bool setIPCOwner (void) throw ()
 
bool setSysModule (void) throw ()
 
bool setSysProcessTrace (void) throw ()
 
bool setSysProcessAccount (void) throw ()
 
bool setSysAdmin (void) throw ()
 
bool setSysBoot (void) throw ()
 
bool setSysTime (void) throw ()
 
bool setSysTTYConfig (void) throw ()
 
bool setMakeNode (void) throw ()
 
bool setLease (void) throw ()
 
bool setAuditWrite (void) throw ()
 
bool setAuditControl (void) throw ()
 
bool setSetFileCapability (void) throw ()
 
bool setMACOverride (void) throw ()
 
bool setMACAdmin (void) throw ()
 
bool setSyslog (void) throw ()
 
bool setWakeAlarm (void) throw ()
 
bool setBlockSuspend (void) throw ()
 
bool setDACOverride (void) throw ()
 
bool setDACReadSearch (void) throw ()
 
bool setFileOwner (void) throw ()
 
bool setFileSetId (void) throw ()
 
bool setIPCLock (void) throw ()
 
bool setKill (void) throw ()
 
bool setNetBindService (void) throw ()
 
bool setNetRaw (void) throw ()
 
bool setSetUID (void) throw ()
 
bool setSysChroot (void) throw ()
 
bool setSysNice (void) throw ()
 
bool setSysRawIO (void) throw ()
 
bool setSysResource (void) throw ()
 
bool clearAll (void) throw ()
 
bool clearCapability (int capability) throw ()
 
bool clearChown (void) throw ()
 
bool clearIPCLock (void) throw ()
 
bool clearKill (void) throw ()
 
bool clearNetBindService (void) throw ()
 
bool clearNetRaw (void) throw ()
 
bool clearSetUID (void) throw ()
 
bool clearSysChroot (void) throw ()
 
bool clearSysNice (void) throw ()
 
bool clearSysRawIO (void) throw ()
 
bool clearSysResource (void) throw ()
 
bool hasNone (void) const throw ()
 
bool hasCapability (int capability) const throw ()
 
bool hasChown (void) const throw ()
 
bool hasIPCLock (void) const throw ()
 
bool hasKill (void) const throw ()
 
bool hasNetBindService (void) const throw ()
 
bool hasNetRaw (void) const throw ()
 
bool hasSetUID (void) const throw ()
 
bool hasSysChroot (void) const throw ()
 
bool hasSysNice (void) const throw ()
 
bool hasSysRawIO (void) const throw ()
 
bool hasSysResource (void) const 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: