XRootD
XrdOfsSecurity.hh File Reference
+ Include dependency graph for XrdOfsSecurity.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AUTHORIZE(usr, env, optype, action, pathp, edata)
 
#define AUTHORIZE2(usr, edata, opt1, act1, path1, env1, opt2, act2, path2, env2)
 
#define OOIDENTENV(usr, env)
 

Macro Definition Documentation

◆ AUTHORIZE

#define AUTHORIZE (   usr,
  env,
  optype,
  action,
  pathp,
  edata 
)
Value:
if (usr && XrdOfsFS->Authorization \
&& !XrdOfsFS->Authorization->Access(usr, pathp, optype, env)) \
{XrdOfsFS->Emsg(epname, edata, EACCES, action, pathp); return SFS_ERROR;}
XrdOfs * XrdOfsFS
Definition: XrdOfsFS.cc:47
#define SFS_ERROR
virtual XrdAccPrivs Access(const XrdSecEntity *Entity, const char *path, const Access_Operation oper, XrdOucEnv *Env=0)=0
static int Emsg(const char *, XrdOucErrInfo &, int, const char *x, XrdOfsHandle *hP)
Definition: XrdOfs.cc:2513

Definition at line 35 of file XrdOfsSecurity.hh.

◆ AUTHORIZE2

#define AUTHORIZE2 (   usr,
  edata,
  opt1,
  act1,
  path1,
  env1,
  opt2,
  act2,
  path2,
  env2 
)
Value:
{AUTHORIZE(usr, env1, opt1, act1, path1, edata); \
AUTHORIZE(usr, env2, opt2, act2, path2, edata); \
}
#define AUTHORIZE(usr, env, optype, action, pathp, edata)

Definition at line 40 of file XrdOfsSecurity.hh.

◆ OOIDENTENV

#define OOIDENTENV (   usr,
  env 
)
Value:
if (usr) {if (usr->name) env.Put(SEC_USER, usr->name); \
if (usr->host) env.Put(SEC_HOST, usr->host);}
#define SEC_HOST
Definition: XrdOucMsubs.hh:45
#define SEC_USER
Definition: XrdOucMsubs.hh:44

Definition at line 45 of file XrdOfsSecurity.hh.