XrdAccAccess Class Reference

#include <XrdAccAccess.hh>

Inheritance diagram for XrdAccAccess:
Inheritance graph
[legend]
Collaboration diagram for XrdAccAccess:
Collaboration graph
[legend]

List of all members.

Public Member Functions

XrdAccPrivs Access (const XrdSecEntity *Entity, const char *path, const Access_Operation oper, XrdOucEnv *Env=0)
int Audit (const int accok, const XrdSecEntity *Entity, const char *path, const Access_Operation oper, XrdOucEnv *Env=0)
void SwapTabs (struct XrdAccAccess_Tables &newtab)
int Test (const XrdAccPrivs priv, const Access_Operation oper)
 XrdAccAccess (XrdSysError *erp)
 ~XrdAccAccess ()

Static Public Member Functions

static const char * Resolve (const XrdSecEntity *Entity)

Private Member Functions

XrdAccPrivs Access (XrdAccPrivCaps &caps, const XrdSecEntity *Entity, const char *path, const Access_Operation oper)

Private Attributes

struct XrdAccAccess_Tables Atab
bool hostRefX
bool hostRefY
XrdSysXSLock Access_Context
XrdAccAuditAuditor

Friends

class XrdAccConfig

Constructor & Destructor Documentation

XrdAccAccess::XrdAccAccess ( XrdSysError erp  ) 
XrdAccAccess::~XrdAccAccess (  )  [inline]

Member Function Documentation

XrdAccPrivs XrdAccAccess::Access ( XrdAccPrivCaps caps,
const XrdSecEntity Entity,
const char *  path,
const Access_Operation  oper 
) [private]
XrdAccPrivs XrdAccAccess::Access ( const XrdSecEntity Entity,
const char *  path,
const Access_Operation  oper,
XrdOucEnv Env = 0 
) [virtual]

Check whether or not the client is permitted specified access to a path.

Parameters:
Entity -> Authentication information
path -> The logical path which is the target of oper
oper -> The operation being attempted (see the enum above). If the oper is AOP_Any, then the actual privileges are returned and the caller may make subsequent tests using Test().
Env -> Environmental information at the time of the operation as supplied by the path CGI string. This is optional and the pointer may be zero.
Returns:
Permit: a non-zero value (access is permitted) Deny: zero (access is denied)

Implements XrdAccAuthorize.

int XrdAccAccess::Audit ( const int  accok,
const XrdSecEntity Entity,
const char *  path,
const Access_Operation  oper,
XrdOucEnv Env = 0 
) [virtual]

Route an audit message to the appropriate audit exit routine. See XrdAccAudit.h for more information on how the default implementation works. Currently, this method is not called by the ofs but should be used by the implementation to record denials or grants, as warranted.

Parameters:
accok -> True is access was grated; false otherwise.
Entity -> Authentication information
path -> The logical path which is the target of oper
oper -> The operation being attempted (see above)
Env -> Environmental information at the time of the operation as supplied by the path CGI string. This is optional and the pointer may be zero.
Returns:
Success: !0 information recorded. Failure: 0 information could not be recorded.

Implements XrdAccAuthorize.

static const char* XrdAccAccess::Resolve ( const XrdSecEntity Entity  )  [static]
void XrdAccAccess::SwapTabs ( struct XrdAccAccess_Tables newtab  ) 
int XrdAccAccess::Test ( const XrdAccPrivs  priv,
const Access_Operation  oper 
) [virtual]

Check whether the specified operation is permitted.

Parameters:
priv -> the privileges as returned by Access().
oper -> The operation being attempted (see above)
Returns:
Permit: a non-zero value (access is permitted) Deny: zero (access is denied)

Implements XrdAccAuthorize.


Friends And Related Function Documentation

friend class XrdAccConfig [friend]

Member Data Documentation

struct XrdAccAccess_Tables XrdAccAccess::Atab [read, private]
bool XrdAccAccess::hostRefX [private]
bool XrdAccAccess::hostRefY [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 21 May 2020 for xrootd by  doxygen 1.6.1