#include <AccessControl.H>
Public Types | |
typedef IdentityRep * | Identity |
typedef Bit32 | ModeBits |
enum | Class { unrestricted, administrative, ownership, read, write, search, del, setuid, setgid, agreement } |
Public Member Functions | |
uid_t | toUnixUser () throw () |
gid_t | toUnixGroup () throw () |
bool | check (Identity who, Class cls, const char *value=NULL) throw () |
Static Public Member Functions | |
static uid_t | globalToUnixUser (const char *user) throw () |
static gid_t | globalToUnixGroup (const char *group) throw () |
static const char * | unixToGlobalUser (uid_t uid) throw () |
static const char * | unixToGlobalGroup (gid_t gid) throw () |
static void | refreshAccessTables () throw (ParseError) |
static bool | admit (Identity who) throw () |
static Identity | self () throw () |
static ModeBits | parseModeBits (const char *char_mode) throw () |
static const char * | formatModeBits (ModeBits mode) throw () |
static void | serverInit () throw (VestaConfig::failure ) |
static void | commonInit () throw () |
Public Attributes | |
ModeBits | mode |
VestaAttribs | owner |
VestaAttribs | group |
Static Public Attributes | |
static const char * | realm = 0 |
static unsigned int | realmlen = 0 |
static IdentityRep::Flavor | defaultFlavor = AccessControl::IdentityRep::unspecified |
static bool | restrictDelete |
static uid_t | vforeignUser |
static gid_t | vforeignGroup |
static const char * | vadminUser |
static const char * | vadminGroup |
static const char * | rootUser |
static const char * | runtoolUser |
static const char * | vwizardUser |
Static Private Member Functions | |
static void | selfInit () throw () |
Static Private Attributes | |
static Identity | self_ = 0 |
Friends | |
void | AccessControl_commonInit_inner () throw () |
void | AccessControl_selfInit_inner () throw () |
Classes | |
class | GlobalIdentityRep |
class | IdentityRep |
class | IdInfo |
class | ParseError |
class | UnixIdentityRep |
|
Definition at line 113 of file AccessControl.H. |
|
Definition at line 296 of file AccessControl.H. |
|
Definition at line 267 of file AccessControl.H. |
|
|
Definition at line 1665 of file AccessControl.C. References administrative, agreement, del, ownership, read, search, setgid, setuid, unrestricted, and write. Referenced by AcquireMastership(), apply_sattr(), do_remove(), do_rename(), AccessCheckStep::execute(), and fh_fd(). |
|
Definition at line 166 of file AccessControlClient.C. References AccessControl_commonInit_inner. Referenced by AccessControl::GlobalIdentityRep::GlobalIdentityRep(), selfInit(), serverInit(), AccessControl::UnixIdentityRep::UnixIdentityRep(), VDirSurrogate_init(), and VestaSourceSRPC_init_inner(). |
|
Definition at line 2016 of file AccessControl.C. References NEW_PTRFREE_ARRAY. Referenced by apply_sattr(). |
|
Definition at line 1332 of file AccessControl.C. References ReadersWritersLock::acquireRead(), Table< K, V >::Default::Get(), group, realm, ReadersWritersLock::releaseRead(), RWLOCK_LOCKED_REASON, userGroup_lock, and vforeignGroup. Referenced by AccessControl::GlobalIdentityRep::toUnixGroup(), and toUnixGroupCallback(). |
|
Definition at line 1307 of file AccessControl.C. References ReadersWritersLock::acquireRead(), Table< K, V >::Default::Get(), realm, ReadersWritersLock::releaseRead(), RWLOCK_LOCKED_REASON, userGroup_lock, and vforeignUser. Referenced by AccessControl::GlobalIdentityRep::toUnixUser(), and toUnixUserCallback(). |
|
Definition at line 2008 of file AccessControl.C. Referenced by VDCLookupResult(). |
|
Definition at line 2122 of file AccessControl.C. |
|
Definition at line 403 of file AccessControlClient.C. References self_, and selfInit(). Referenced by main(), and VestaSourceSRPC::send_identity(). |
|
Definition at line 196 of file AccessControlClient.C. References AccessControl_selfInit_inner, and commonInit(). Referenced by self(). |
|
|
Definition at line 1611 of file AccessControl.C. References VestaAttribs::getAttrib(), owner, toUnixGroupCallback(), and vforeignGroup. |
|
Definition at line 1590 of file AccessControl.C. References VestaAttribs::getAttrib(), owner, toUnixUserCallback(), and vforeignUser. |
|
Definition at line 1563 of file AccessControl.C. References ReadersWritersLock::acquireRead(), ReadersWritersLock::releaseRead(), RWLOCK_LOCKED_REASON, and userGroup_lock. Referenced by apply_sattr(). |
|
Definition at line 1453 of file AccessControl.C. References ReadersWritersLock::acquireRead(), ReadersWritersLock::releaseRead(), RWLOCK_LOCKED_REASON, and userGroup_lock. Referenced by apply_sattr(). |
|
! gssapi initialization may be needed here Definition at line 59 of file AccessControlClient.C. Referenced by commonInit(). |
|
Definition at line 174 of file AccessControlClient.C. Referenced by selfInit(). |
|
Definition at line 34 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(), AccessControl_selfInit_inner(), and serverInit(). |
|
Definition at line 302 of file AccessControl.H. Referenced by any_fattr(), apply_sattr(), file_fattr(), globalToUnixGroup(), VestaSource::init(), and VDCLookupResult(). |
|
Definition at line 300 of file AccessControl.H. Referenced by any_fattr(), apply_sattr(), file_fattr(), VestaSource::init(), and VDCLookupResult(). |
|
|
Definition at line 31 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(), AccessControl::GlobalIdentityRep::GlobalIdentityRep(), globalToUnixGroup(), globalToUnixUser(), main(), serverInit(), toUnixGroupCallback(), and toUnixUserCallback(). |
|
Definition at line 32 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(), AccessControl::GlobalIdentityRep::GlobalIdentityRep(), and serverInit(). |
|
Definition at line 35 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(). |
|
Definition at line 40 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(). |
|
Definition at line 41 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(), and VestaSource::recoveryDone(). |
|
Definition at line 43 of file AccessControlClient.C. Referenced by self(). |
|
Definition at line 39 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(), and VestaSource::recoveryDone(). |
|
Definition at line 38 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(). |
|
Definition at line 37 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(), any_fattr(), file_fattr(), globalToUnixGroup(), and toUnixGroup(). |
|
Definition at line 36 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(), any_fattr(), file_fattr(), globalToUnixUser(), and toUnixUser(). |
|
Definition at line 42 of file AccessControlClient.C. Referenced by AccessControl_commonInit_inner(). |