|
xrootd
|
#include "XrdAcc/XrdAccAuthorize.hh"
Go to the source code of this file.
Defines | |
| #define | AUTHORIZE(usr, env, optype, action, pathp, edata) |
| #define | AUTHORIZE2(usr, edata, opt1, act1, path1, env1, opt2, act2, path2, env2) |
| #define | OOIDENTENV(usr, env) |
| #define AUTHORIZE | ( | usr, | |
| env, | |||
| optype, | |||
| action, | |||
| pathp, | |||
| edata | |||
| ) |
if (usr && XrdOfsFS.Authorization \ && !XrdOfsFS.Authorization->Access(usr, pathp, optype, env)) \ {XrdOfsFS.Emsg(epname, edata, EACCES, action, pathp); return SFS_ERROR;}
Referenced by XrdOfs::chmod(), XrdOfs::exists(), XrdOfs::fsctl(), XrdOfs::mkdir(), XrdOfsFile::open(), XrdOfsDirectory::open(), XrdOfs::prepare(), XrdOfs::remove(), XrdOfs::stat(), and XrdOfs::truncate().
| #define AUTHORIZE2 | ( | usr, | |
| edata, | |||
| opt1, | |||
| act1, | |||
| path1, | |||
| env1, | |||
| opt2, | |||
| act2, | |||
| path2, | |||
| env2 | |||
| ) |
{AUTHORIZE(usr, env1, opt1, act1, path1, edata); \
AUTHORIZE(usr, env2, opt2, act2, path2, edata); \
}
Referenced by XrdOfs::rename().
| #define OOIDENTENV | ( | usr, | |
| env | |||
| ) |
if (usr) {if (usr->name) env.Put(SEC_USER, usr->name); \ if (usr->host) env.Put(SEC_HOST, usr->host);}
Referenced by XrdOfsFile::open().
1.7.3