 |
XRootD
|
|
|
Loading...
Searching...
No Matches
Go to the documentation of this file. 1#ifndef ___XrdOfsSECURITY_H___
2#define ___XrdOfsSECURITY_H___
35#define AUTHORIZE(usr, env, optype, action, pathp, edata) \
36 if (usr && XrdOfsFS->Authorization) \
38 if (!XrdOfsFS->Authorization->Access(usr, pathp, optype, eText, env)) \
39 {const char *eXtra = (eText.empty() ? 0 : eText.c_str()); \
40 XrdOfsFS->Emsg(epname, edata, EACCES, action, pathp, eXtra); \
45#define AUTHORIZE2(usr,edata,opt1,act1,path1,env1,opt2,act2,path2,env2) \
46 {AUTHORIZE(usr, env1, opt1, act1, path1, edata); \
47 AUTHORIZE(usr, env2, opt2, act2, path2, edata); \
50#define OOIDENTENV(usr, env) \
51 if (usr) {if (usr->name) env.Put(SEC_USER, usr->name); \
52 if (usr->host) env.Put(SEC_HOST, usr->host);}