#include <XrdSysPriv.hh>
Public Member Functions | |
virtual | ~XrdSysPriv () |
Static Public Member Functions | |
static int | ChangePerm (uid_t uid, gid_t gid) |
Private Member Functions | |
XrdSysPriv () | |
Static Private Member Functions | |
static int | ChangeTo (uid_t uid, gid_t gid) |
static void | DumpUGID (const char *msg=0) |
static int | Restore (bool saved=1) |
Static Private Attributes | |
static XrdSysRecMutex | fgMutex |
static bool | fDebug |
Friends | |
class | XrdSysPrivGuard |
Definition at line 35 of file XrdSysPriv.hh.
XrdSysPriv::XrdSysPriv | ( | ) | [private] |
virtual XrdSysPriv::~XrdSysPriv | ( | ) | [inline, virtual] |
Definition at line 52 of file XrdSysPriv.hh.
int XrdSysPriv::ChangeTo | ( | uid_t | uid, | |
gid_t | gid | |||
) | [static, private] |
Definition at line 159 of file XrdSysPriv.cc.
References getresgid(), getresuid(), NOGC, NOUC, Restore(), setresgid(), setresuid(), and XSPERR.
Referenced by XrdSysPrivGuard::Init().
void XrdSysPriv::DumpUGID | ( | const char * | msg = 0 |
) | [static, private] |
Definition at line 292 of file XrdSysPriv.cc.
References fgMutex, getresgid(), getresuid(), XrdSysMutex::Lock(), and XrdSysMutex::UnLock().
Referenced by XrdSysPrivGuard::Init().
int XrdSysPriv::Restore | ( | bool | saved = 1 |
) | [static, private] |
Definition at line 107 of file XrdSysPriv.cc.
References getresgid(), getresuid(), NOGC, NOUC, setresgid(), setresuid(), and XSPERR.
Referenced by ChangePerm(), ChangeTo(), and XrdSysPrivGuard::~XrdSysPrivGuard().
int XrdSysPriv::ChangePerm | ( | uid_t | uid, | |
gid_t | gid | |||
) | [static] |
Definition at line 215 of file XrdSysPriv.cc.
References fgMutex, getresgid(), getresuid(), XrdSysMutex::Lock(), Restore(), setresgid(), setresuid(), XrdSysMutex::UnLock(), and XSPERR.
Referenced by XrdProofdProtocol::Configure(), XrdProofdProofServMgr::SetUserEnvironment(), and XrdROOTMgr::Validate().
friend class XrdSysPrivGuard [friend] |
Definition at line 37 of file XrdSysPriv.hh.
XrdSysRecMutex XrdSysPriv::fgMutex [static, private] |
Definition at line 41 of file XrdSysPriv.hh.
Referenced by ChangePerm(), DumpUGID(), XrdSysPrivGuard::Init(), and XrdSysPrivGuard::~XrdSysPrivGuard().
bool XrdSysPriv::fDebug [static, private] |