Open Lighting Architecture  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
Credentials.cpp File Reference

Detailed Description

Namespaces

namespace  ola
 The namespace containing all OLA symbols.

Functions

bool ola::GetPasswdName (const string &name, PasswdEntry *passwd)
bool ola::GetGroupName (const string &name, GroupEntry *group_entry)
Get / Set User ID
uid_t ola::GetUID ()
 Get the real UID of the process.
uid_t ola::GetEUID ()
 Get the effective UID of the process.
bool ola::SetUID (uid_t new_uid)
 Set the effective UID of the process.
Get / Set Group ID
gid_t ola::GetGID ()
 Get the real Group ID.
gid_t ola::GetEGID ()
 Get the effective group ID.
bool ola::SetGID (gid_t new_gid)
 Set the effective Group ID of the process.
Lookup User Information
bool ola::GetPasswdUID (uid_t uid, PasswdEntry *passwd)
 Lookup a user account by UID.
Lookup Group Information.
bool ola::GetGroupGID (gid_t gid, GroupEntry *passwd)
 Lookup a group account by GID.