|
xrootd
|
#include <XrdOfsTPC.hh>


Classes | |
| struct | Facts |
| struct | iParm |
Public Member Functions | |
| virtual void | Del () |
| virtual int | Sync (XrdOucErrInfo *error) |
| XrdOfsTPC () | |
| XrdOfsTPC (const char *Url, const char *Org, const char *Lfn, const char *Pfn, const char *Cks=0) | |
| virtual | ~XrdOfsTPC () |
Static Public Member Functions | |
| static void | Allow (char *vDN, char *vGN, char *vHN, char *vVO) |
| static int | Authorize (XrdOfsTPC **theTPC, Facts &Args, int isPLE=0) |
| static void | Init (iParm &Parms) |
| static void | Init (XrdAccAuthorize *accP) |
| static void | Init (XrdOss *ossP) |
| 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 char * | cksType = 0 |
Static Protected Member Functions | |
| 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) |
| static const char * | Yield (const char *Name, char *Buf, int Blen) |
Protected Attributes | |
| char | Refs |
| char | inQ |
Static Protected Attributes | |
| static XrdAccAuthorize * | fsAuth = 0 |
| static XrdOss * | OfsOss = 0 |
| static char * | XfrProg = 0 |
| static XrdOucTList * | AuthDst = 0 |
| static XrdOucTList * | AuthOrg = 0 |
| static XrdOfsTPCAllow * | ALList = 0 |
| static XrdOucPListAnchor * | RPList |
| static int | dflTTL = 7 |
| static int | maxTTL = 15 |
| static int | LogOK = 0 |
| static int | nStrms = 0 |
| static int | xfrMax = 9 |
| static int | tpcOK = 0 |
| static int | encTPC = 0 |
| XrdOfsTPC::XrdOfsTPC | ( | ) | [inline] |
| XrdOfsTPC::XrdOfsTPC | ( | const char * | Url, |
| const char * | Org, | ||
| const char * | Lfn, | ||
| const char * | Pfn, | ||
| const char * | Cks = 0 |
||
| ) | [inline] |
| virtual XrdOfsTPC::~XrdOfsTPC | ( | ) | [inline, virtual] |
| void XrdOfsTPC::Allow | ( | char * | vDN, |
| char * | vGN, | ||
| char * | vHN, | ||
| char * | vVO | ||
| ) | [static] |
References ALList.
Referenced by XrdOfs::xtpcal().
| int XrdOfsTPC::Authorize | ( | XrdOfsTPC ** | theTPC, |
| XrdOfsTPC::Facts & | Args, | ||
| int | isPLE = 0 |
||
| ) | [static] |
References XrdAccAuthorize::Access(), XrdOfsTPCAuth::Add(), XrdOfsStats::Add(), ALList, AOP_Read, AuthDst, AuthOrg, XrdOfsStats::Data, XrdOfsTPCAuth::Del(), XrdOfsTPC::Facts::Dst, eMsg, XrdSysError::Emsg(), XrdOfsTPC::Facts::Env, EPNAME, XrdOfsTPC::Facts::eRR, XrdOfsTPCAuth::Expired(), Fatal(), XrdOucPListAnchor::Find(), fsAuth, XrdOfsTPCAuth::Get(), XrdOucEnv::Get(), XrdOucErrInfo::getErrUser(), getTTL(), XrdSecEntity::host, XrdOfsTPC::Facts::Lfn, LogOK, XrdOfsTPCAllow::Match(), XrdOfsTPCAllow::Next, XrdOfsStats::StatsData::numTPCdeny, XrdOfsStats::StatsData::numTPCgrant, XrdOfsTPC::Facts::Org, RPList, Screen(), SFS_ERROR, SFS_OK, XrdSecEntity::tident, XrdOucTPC::tpcDst, tpcOK, XrdOucTPC::tpcOrg, XrdOfsTPC::Facts::Usr, and Yield().
Referenced by XrdOfsFile::open().
| virtual void XrdOfsTPC::Del | ( | ) | [inline, virtual] |
Reimplemented in XrdOfsTPCAuth, and XrdOfsTPCJob.
Referenced by XrdOfsFile::close().
| int XrdOfsTPC::Fatal | ( | XrdOfsTPC::Facts & | Args, |
| const char * | eMsg, | ||
| int | eCode, | ||
| int | nomsg = 0 |
||
| ) | [static, protected] |
References XrdOfsStats::Add(), XrdOfsStats::Data, XrdSysError::Emsg(), XrdOfsTPC::Facts::eRR, XrdOucErrInfo::getErrUser(), XrdOfsTPC::Facts::Lfn, XrdOfsStats::StatsData::numTPCerrs, XrdOucErrInfo::setErrInfo(), and SFS_ERROR.
Referenced by XrdOfsTPCAuth::Add(), Authorize(), XrdOfsTPCAuth::Get(), Screen(), and Validate().
| int XrdOfsTPC::genOrg | ( | const XrdSecEntity * | client, |
| char * | Buff, | ||
| int | Blen | ||
| ) | [static, protected] |
References XrdSecEntity::host, XrdSecEntity::tident, and Verify().
Referenced by XrdOfsTPCAuth::Add(), and Validate().
| int XrdOfsTPC::getTTL | ( | XrdOucEnv * | Env | ) | [static, protected] |
References dflTTL, XrdOucEnv::Get(), maxTTL, and XrdOucTPC::tpcTtl.
Referenced by Authorize().
| void XrdOfsTPC::Init | ( | XrdOfsTPC::iParm & | Parms | ) | [static] |
References XrdOfsTPC::iParm::Ckst, cksType, XrdOfsTPC::iParm::Dflttl, dflTTL, XrdOfsTPC::iParm::Logok, LogOK, XrdOfsTPC::iParm::Maxttl, maxTTL, nStrms, XrdOfsTPC::iParm::Pgm, XrdOfsTPC::iParm::Strm, xfrMax, XfrProg, and XrdOfsTPC::iParm::Xmax.
Referenced by XrdOfs::xtpc().
| static void XrdOfsTPC::Init | ( | XrdAccAuthorize * | accP | ) | [inline, static] |
References fsAuth.
| static void XrdOfsTPC::Init | ( | XrdOss * | ossP | ) | [inline, static] |
References OfsOss.
| void XrdOfsTPC::Require | ( | const char * | Auth, |
| int | RType | ||
| ) | [static] |
References AuthDst, AuthOrg, encTPC, reqDST, reqORG, and XrdOucTList::text.
Referenced by XrdOfs::xtpc().
| int XrdOfsTPC::Restrict | ( | const char * | Path | ) | [static] |
References XrdSysError::Emsg(), XrdOucPListAnchor::Insert(), XrdOucPListAnchor::Match(), and RPList.
Referenced by XrdOfs::xtpc().
| int XrdOfsTPC::Screen | ( | XrdOfsTPC::Facts & | Args, |
| XrdOucTList * | tP, | ||
| int | wasEnc = 0 |
||
| ) | [static, protected] |
References XrdOfsStats::Add(), XrdOfsStats::Data, Fatal(), XrdOucTList::next, XrdOfsStats::StatsData::numTPCdeny, XrdSecEntity::prot, XrdOucTList::text, XrdOfsTPC::Facts::Usr, and XrdOucTList::val.
Referenced by Authorize().
| int XrdOfsTPC::Start | ( | ) | [static] |
References XrdOucPListAnchor::Default(), encTPC, XrdOucEnv::Export(), XrdOfsTPCProg::Init(), nStrms, RPList, XrdOfsTPCAuth::RunTTL(), tpcOK, xfrMax, and XfrProg.
Referenced by XrdOfs::Configure().
| virtual int XrdOfsTPC::Sync | ( | XrdOucErrInfo * | error | ) | [inline, virtual] |
Reimplemented in XrdOfsTPCJob.
Referenced by XrdOfsFile::sync().
| int XrdOfsTPC::Validate | ( | XrdOfsTPC ** | theTPC, |
| XrdOfsTPC::Facts & | Args | ||
| ) | [static] |
References XrdOucTPC::cgiD2Src(), XrdOfsTPC::Facts::Env, Fatal(), genOrg(), XrdOucEnv::Get(), XrdOfsTPC::Facts::Key, XrdOfsTPC::Facts::Lfn, XrdOfsTPC::Facts::Pfn, SFS_OK, XrdSecEntity::tident, XrdOucTPC::tpcCks, XrdOucTPC::tpcLfn, tpcOK, XrdOucTPC::tpcSrc, XrdCopy::tpcSrc, and XrdOfsTPC::Facts::Usr.
Referenced by XrdOfsFile::open().
| char * XrdOfsTPC::Verify | ( | const char * | Who, |
| const char * | Name, | ||
| char * | Buf, | ||
| int | Blen | ||
| ) | [static, protected] |
References XrdSysDNS::getHostName().
Referenced by genOrg().
| const char * XrdOfsTPC::Yield | ( | const char * | Name, |
| char * | Buf, | ||
| int | Blen | ||
| ) | [static, protected] |
References XrdSysDNS::getHostName(), and strlcpy().
Referenced by Authorize().
XrdOfsTPCAllow * XrdOfsTPC::ALList = 0 [static, protected] |
Referenced by Allow(), and Authorize().
XrdOucTList * XrdOfsTPC::AuthDst = 0 [static, protected] |
Referenced by Authorize(), and Require().
XrdOucTList * XrdOfsTPC::AuthOrg = 0 [static, protected] |
Referenced by Authorize(), and Require().
char * XrdOfsTPC::cksType = 0 [static] |
Referenced by Init(), and XrdOfsTPCProg::Xeq().
int XrdOfsTPC::dflTTL = 7 [static, protected] |
int XrdOfsTPC::encTPC = 0 [static, protected] |
XrdAccAuthorize * XrdOfsTPC::fsAuth = 0 [static, protected] |
Referenced by Authorize(), and Init().
char XrdOfsTPC::inQ [protected] |
int XrdOfsTPC::LogOK = 0 [static, protected] |
Referenced by Authorize(), and Init().
int XrdOfsTPC::maxTTL = 15 [static, protected] |
Referenced by XrdOfsTPCAuth::Get(), getTTL(), Init(), and XrdOfsTPCAuth::RunTTL().
int XrdOfsTPC::nStrms = 0 [static, protected] |
XrdOss * XrdOfsTPC::OfsOss = 0 [static, protected] |
Referenced by Init().
char XrdOfsTPC::Refs [protected] |
const int XrdOfsTPC::reqALL = 0 [static] |
Referenced by XrdOfs::xtpc().
const int XrdOfsTPC::reqDST = 1 [static] |
Referenced by Require(), and XrdOfs::xtpc().
const int XrdOfsTPC::reqORG = 2 [static] |
Referenced by Require(), and XrdOfs::xtpc().
XrdOucPListAnchor * XrdOfsTPC::RPList [static, protected] |
Referenced by Authorize(), Restrict(), and Start().
int XrdOfsTPC::tpcOK = 0 [static, protected] |
Referenced by Authorize(), Start(), and Validate().
int XrdOfsTPC::xfrMax = 9 [static, protected] |
char * XrdOfsTPC::XfrProg = 0 [static, protected] |
1.7.6.1