XrdOfsSecurity.hh File Reference

#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 Documentation

#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;}

Definition at line 17 of file XrdOfsSecurity.hh.

Referenced by XrdOfs::chmod(), XrdOfs::exists(), XrdOfs::fsctl(), XrdOfs::mkdir(), XrdOfsDirectory::open(), XrdOfsFile::open(), XrdOfs::prepare(), XrdOfs::remove(), XrdOfs::stat(), and XrdOfs::truncate().

#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); \
       }

Definition at line 22 of file XrdOfsSecurity.hh.

Referenced by XrdOfs::rename().

#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);}

Definition at line 27 of file XrdOfsSecurity.hh.

Referenced by XrdOfsFile::open().


Generated on Tue Jul 5 16:08:09 2011 for ROOT_528-00b_version by  doxygen 1.5.1