![]() |
XRootD
|
#include <XrdOfsTPC.hh>
Classes | |
struct | Facts |
Public Member Functions | |
XrdOfsTPC () | |
XrdOfsTPC (const char *Url, const char *Org, const char *Lfn, const char *Pfn, const char *Cks=0, const char *Spr=0, const char *Tpr=0) | |
virtual | ~XrdOfsTPC () |
virtual void | Del () |
virtual int | Sync (XrdOucErrInfo *error) |
Static Public Member Functions | |
static const char * | AddAuth (const char *auth, const char *avar) |
static void | Allow (char *vDN, char *vGN, char *vHN, char *vVO) |
static int | Authorize (XrdOfsTPC **theTPC, Facts &Args, int isPLE=0) |
static const char * | credPath () |
static void | Init () |
static void | Init (XrdAccAuthorize *accP) |
static void | Require (const char *Auth, int RType) |
static int | Restrict (const char *Path) |
static int | Start () |
static int | Validate (XrdOfsTPC **theTPC, Facts &Args) |
Public Attributes | |
XrdOfsTPCInfo | Info |
Static Public Attributes | |
static const int | reqALL = 0 |
static const int | reqDST = 1 |
static const int | reqORG = 2 |
Static Protected Member Functions | |
static int | Death (Facts &Args, const char *eMsg, int eCode, int nomsg=0) |
static int | Fatal (Facts &Args, const char *eMsg, int eCode, int nomsg=0) |
static int | genOrg (const XrdSecEntity *client, char *Buff, int Blen) |
static int | getTTL (XrdOucEnv *Env) |
static int | Screen (Facts &Args, XrdOucTList *tP, int wasEnc=0) |
static char * | Verify (const char *Who, const char *Name, char *Buf, int Blen) |
Protected Attributes | |
char | inQ |
char | Refs |
Static Protected Attributes | |
static XrdOfsTPCAllow * | ALList = 0 |
static XrdOucTList * | AuthDst = 0 |
static XrdOucTList * | AuthOrg = 0 |
static char * | cPath = 0 |
static XrdAccAuthorize * | fsAuth = 0 |
static XrdOucPListAnchor * | RPList |
Definition at line 47 of file XrdOfsTPC.hh.
|
inline |
Definition at line 99 of file XrdOfsTPC.hh.
|
inline |
Definition at line 101 of file XrdOfsTPC.hh.
|
inlinevirtual |
Definition at line 107 of file XrdOfsTPC.hh.
|
static |
Definition at line 164 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::fcTb::aGSI, XrdOfsTPCParms::fcTb::aOpt, XrdOfsTPCParms::fcTb::aVar, XrdOfsTPCParms::fcAuth, XrdOfsTPCParms::fcMax, XrdOfsTPCParms::fcNum, and XrdSecPROTOIDSIZE.
|
static |
Definition at line 209 of file XrdOfsTPC.cc.
|
static |
Definition at line 221 of file XrdOfsTPC.cc.
References XrdOfsTPCAuth::Add(), XrdOfsStats::Add(), XrdSecEntity::addrInfo, AOP_Read, XrdOfsTPCParms::Cfg, XrdOfsStats::Data, XrdOfsTPCAuth::Del(), XrdOfsTPC::Facts::Dst, XrdSysError::Emsg(), XrdOfsTPC::Facts::Env, XrdOfsTPC::Facts::eRR, XrdOfsTPCAuth::Expired(), Fatal(), XrdOucEnv::Get(), XrdOfsTPCAuth::Get(), XrdOucErrInfo::getErrUser(), XrdOfsTPC::Facts::Lfn, XrdOfsTPCConfig::LogOK, XrdOfsTPCAllow::Match(), XrdNetAddrInfo::Name(), XrdOfsTPCAllow::Next, XrdOfsStats::StatsData::numTPCdeny, XrdOfsStats::StatsData::numTPCgrant, OfsEroute, OfsStats, XrdOfsTPC::Facts::Org, SFS_ERROR, SFS_OK, XrdSecEntity::tident, XrdOucTPC::tpcDst, XrdOfsTPCParms::tpcOK, XrdOucTPC::tpcOrg, and XrdOfsTPC::Facts::Usr.
Referenced by XrdOfsFile::open().
|
inlinestatic |
|
staticprotected |
Definition at line 319 of file XrdOfsTPC.cc.
References XrdOfsTPCConfig::autoRM, XrdOfsTPCParms::Cfg, eMsg, Fatal(), XrdOfsTPC::Facts::Lfn, XrdOfsTPC::Facts::Pfn, XrdOss::Unlink(), and XrdOfsOss.
|
inlinevirtual |
Reimplemented in XrdOfsTPCJob, and XrdOfsTPCAuth.
Definition at line 79 of file XrdOfsTPC.hh.
Referenced by XrdOfsFile::close(), and XrdOfsFile::fctl().
|
staticprotected |
Definition at line 334 of file XrdOfsTPC.cc.
References XrdOfsStats::Add(), XrdOfsStats::Data, XrdSysError::Emsg(), eMsg, XrdOfsTPC::Facts::eRR, XrdOucErrInfo::getErrUser(), XrdOfsTPC::Facts::Lfn, XrdOfsStats::StatsData::numTPCerrs, OfsEroute, OfsStats, XrdOucErrInfo::setErrInfo(), and SFS_ERROR.
|
staticprotected |
Definition at line 359 of file XrdOfsTPC.cc.
References XrdSecEntity::host, and XrdSecEntity::tident.
|
staticprotected |
Definition at line 396 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::Cfg, XrdOfsTPCConfig::dflTTL, XrdOucEnv::Get(), XrdOfsTPCConfig::maxTTL, and XrdOucTPC::tpcTtl.
|
static |
Definition at line 414 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::fcTb::aProt, XrdOfsTPCParms::Cfg, XrdOfsTPCConfig::cPath, XrdOucEnv::Export(), XrdOfsTPCParms::fcAuth, XrdOfsTPCParms::fcNum, XrdOfsTPCConfig::fCreds, XrdOfsTPCConfig::tcpSMax, and XrdOfsTPCConfig::tcpSTRM.
Referenced by XrdOfs::Configure().
|
inlinestatic |
|
static |
Definition at line 445 of file XrdOfsTPC.cc.
References XrdDig::Auth, and XrdOfsTPCParms::encTPC.
|
static |
Definition at line 465 of file XrdOfsTPC.cc.
References XrdSysError::Emsg(), OfsEroute, and Path.
|
staticprotected |
Definition at line 497 of file XrdOfsTPC.cc.
References XrdOfsStats::Add(), XrdOfsStats::Data, Fatal(), XrdOucTList::next, XrdOfsStats::StatsData::numTPCdeny, OfsStats, XrdSecEntity::prot, XrdOucTList::text, and XrdOfsTPC::Facts::Usr.
|
static |
Definition at line 520 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::Cfg, XrdOfsTPCParms::encTPC, XrdOucEnv::Export(), XrdOfsTPCProg::Init(), XrdOfsTPCAuth::RunTTL(), XrdOfsTPCParms::tpcOK, and XrdOfsTPCConfig::XfrProg.
|
inlinevirtual |
Reimplemented in XrdOfsTPCJob.
Definition at line 95 of file XrdOfsTPC.hh.
Referenced by XrdOfsFile::sync().
|
static |
Definition at line 550 of file XrdOfsTPC.cc.
References XrdOfsTPCParms::fcTb::aGSI, XrdOfsTPCParms::fcTb::aProt, XrdOfsTPCParms::fcTb::aVar, XrdOfsTPCParms::Cfg, XrdOucTPC::cgiD2Src(), XrdOucTPC::copyCGI(), XrdSecEntity::creds, XrdSecEntity::credslen, XrdOfsTPC::Facts::Env, XrdOfsTPCParms::fcAuth, XrdOfsTPCParms::fcNum, XrdOucEnv::Get(), XrdOfsTPCParms::gsiPKH, Info, XrdOfsTPCInfo::isDest(), XrdOfsTPC::Facts::Key, XrdOfsTPC::Facts::Lfn, XrdOfsTPCConfig::noids, XrdOfsTPC::Facts::Pfn, XrdSecEntity::prot, XrdOucEnv::Put(), XrdOfsTPCConfig::rPath, XrdOfsTPCInfo::SetCreds(), XrdOfsTPCInfo::SetRPath(), XrdOfsTPCInfo::SetStreams(), SFS_OK, XrdOfsTPCConfig::tcpSMax, XrdOfsTPCConfig::tcpSTRM, XrdSecEntity::tident, XrdOucTPC::tpcCks, XrdOucTPC::tpcDlg, XrdOucTPC::tpcLfn, XrdOfsTPCParms::tpcOK, XrdOucTPC::tpcSgi, XrdOucTPC::tpcSpr, XrdOucTPC::tpcSrc, XrdOucTPC::tpcStr, XrdOucTPC::tpcTpr, and XrdOfsTPC::Facts::Usr.
Referenced by XrdOfsFile::open().
|
staticprotected |
Definition at line 683 of file XrdOfsTPC.cc.
References XrdNetAddrInfo::Name(), and XrdNetAddr::Set().
|
staticprotected |
Definition at line 126 of file XrdOfsTPC.hh.
|
staticprotected |
Definition at line 122 of file XrdOfsTPC.hh.
|
staticprotected |
Definition at line 123 of file XrdOfsTPC.hh.
|
staticprotected |
Definition at line 124 of file XrdOfsTPC.hh.
Referenced by credPath().
|
staticprotected |
Definition at line 120 of file XrdOfsTPC.hh.
Referenced by Init().
XrdOfsTPCInfo XrdOfsTPC::Info |
Definition at line 109 of file XrdOfsTPC.hh.
Referenced by XrdOfsTPCJob::Del(), XrdOfsTPCJob::Done(), XrdOfsTPCProg::Run(), XrdOfsTPCJob::Sync(), Validate(), and XrdOfsTPCProg::Xeq().
|
protected |
Definition at line 130 of file XrdOfsTPC.hh.
Referenced by XrdOfsTPCJob::Del(), XrdOfsTPCJob::Done(), and XrdOfsTPCJob::Sync().
|
protected |
Definition at line 129 of file XrdOfsTPC.hh.
Referenced by XrdOfsTPCJob::Del(), XrdOfsTPCJob::Done(), and XrdOfsTPCJob::Sync().
|
static |
Definition at line 85 of file XrdOfsTPC.hh.
|
static |
Definition at line 86 of file XrdOfsTPC.hh.
|
static |
Definition at line 87 of file XrdOfsTPC.hh.
|
staticprotected |
Definition at line 127 of file XrdOfsTPC.hh.