Acl Namespace Reference

Classes

class  TypeNameCmp
 ACL type name comparison functor. More...
 
class  Address
 list of address-based ACLs. More...
 
class  AllOf
 
class  AnyOf
 Configurable any-of ACL. Each ACL line is a disjuction of ACLs. More...
 
class  NotNode
 Implements the "not" or "!" operator. More...
 
class  AndNode
 
class  OrNode
 
class  CharacterSetOption
 option value to configure one or more characters (e.g., -m=",;") More...
 
class  ConnectionsEncrypted
 
class  InnerNode
 An intermediate ACL tree node. Manages a collection of child tree nodes. More...
 
class  AnnotationStrategy
 common parent of several ACLs dealing with transaction annotations More...
 
class  OptionExtractor
 low-level parser that extracts but does not interpret ACL options More...
 
class  OptionsParser
 parses/validates/stores ACL options; skips/preserves parameter flags More...
 
class  Option
 
class  OptionValue
 Stores configuration of a typical boolean flag or a single-value Option. More...
 
class  TypedOption
 a type-specific Option (e.g., a boolean –toggle or -m=SBuf) More...
 
class  OptionNameCmp
 option name comparison functor More...
 
class  TransactionInitiator
 transaction_initiator ACL More...
 
class  Tree
 

Typedefs

typedef std::map< TypeName,
Maker, TypeNameCmp
Makers
 ACL makers indexed by ACL type name. More...
 
typedef const char * TypeName
 the ACL type name known to admins More...
 
typedef ACL *(* Maker )(TypeName typeName)
 a "factory" function for making ACL objects (of some ACL child type) More...
 
typedef OptionValue< CharacterSetCharacterSetOptionValue
 
typedef std::vector< ACL * > Nodes
 a collection of nodes More...
 
typedef const char * OptionName
 
typedef OptionValue< bool > BooleanOptionValue
 
typedef OptionValue< SBufTextOptionValue
 
typedef TypedOption
< BooleanOptionValue
BooleanOption
 
typedef TypedOption
< TextOptionValue
TextOption
 
typedef std::map< OptionName,
const Option *, OptionNameCmp
Options
 name:option map More...
 
typedef std::set< OptionName,
OptionNameCmp
ParameterFlags
 a set of parameter flag names More...
 

Functions

static MakersTheMakers ()
 registered ACL Makers More...
 
static ACLMake (TypeName typeName)
 creates an ACL object of the named (and already registered) ACL child type More...
 
void RegisterMaker (TypeName typeName, Maker maker)
 use the given ACL Maker for all ACLs of the named type More...
 
void Init (void)
 prepares to parse ACLs configuration More...
 
void ParseFlags (const Options &options, const ParameterFlags &flags)
 
const OptionsNoOptions ()
 
const ParameterFlagsNoFlags ()
 
const char * AllowOrDeny (const allow_t &action)
 

Typedef Documentation

Definition at line 134 of file Options.h.

Definition at line 132 of file Options.h.

typedef ACL*(* Acl::Maker)(TypeName typeName)

Definition at line 29 of file Acl.h.

typedef std::map<TypeName, Maker, TypeNameCmp> Acl::Makers

Definition at line 41 of file Acl.cc.

Definition at line 18 of file InnerNode.h.

typedef const char* Acl::OptionName

Definition at line 35 of file Options.h.

typedef std::map<OptionName, const Option*, OptionNameCmp> Acl::Options

Definition at line 159 of file Options.h.

Definition at line 162 of file Options.h.

Definition at line 135 of file Options.h.

Definition at line 133 of file Options.h.

typedef const char* Acl::TypeName

Definition at line 27 of file Acl.h.

Function Documentation

const char* Acl::AllowOrDeny ( const allow_t action)
inline

Definition at line 53 of file Tree.h.

References allow_t::allowed().

Referenced by dump_acl_access(), and dump_ftp_epsv().

void Acl::Init ( void  )
static ACL* Acl::Make ( TypeName  typeName)
static

Definition at line 54 of file Acl.cc.

References assert, DBG_CRITICAL, debugs, self_destruct(), and TheMakers().

Referenced by ACL::ParseAclLine().

const Acl::ParameterFlags & Acl::NoFlags ( )
Returns
an empty ParameterFlags container

Definition at line 254 of file Options.cc.

Referenced by ACL::parseFlags(), and ACLData< X509 * >::supportedFlags().

const Acl::Options & Acl::NoOptions ( )
Returns
an empty Options container

Definition at line 247 of file Options.cc.

Referenced by ACLStrategy< X509 * >::options(), ACL::options(), ACLExtUser::parseFlags(), ACLProxyAuth::parseFlags(), and ACLIdent::parseFlags().

void Acl::ParseFlags ( const Options &  options,
const ParameterFlags &  flags 
)

parses the flags part of the being-parsed ACL, filling Option values

Parameters
optionsoptions supported by the ACL as a whole (e.g., -n)
flagsoptions supported by ACL parameter(s) (e.g., -i)

Definition at line 240 of file Options.cc.

References Acl::OptionsParser::parse().

Referenced by ACLExtUser::parseFlags(), ACLStrategised< M >::parseFlags(), ACLProxyAuth::parseFlags(), ACLIdent::parseFlags(), and ACL::parseFlags().

void Acl::RegisterMaker ( TypeName  typeName,
Maker  maker 
)

Definition at line 72 of file Acl.cc.

References assert, and TheMakers().

Referenced by Init(), and testACLMaxUserIP::setUp().

static Makers& Acl::TheMakers ( )
static

Definition at line 45 of file Acl.cc.

Referenced by Make(), and RegisterMaker().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors