xrootd
|
#include <XrdNetSecurity.hh>
Public Member Functions | |
void | AddHost (char *hname) |
void | AddNetGroup (char *hname) |
char * | Authorize (struct sockaddr *addr) |
void | Merge (XrdNetSecurity *srcp) |
void | Trace (XrdOucTrace *et=0) |
XrdNetSecurity () | |
~XrdNetSecurity () | |
Private Member Functions | |
char * | hostOK (char *hname, const char *ipname, const char *why) |
Private Attributes | |
XrdOucNList_Anchor | HostList |
XrdNetTextList * | NetGroups |
XrdOucHash< char > | OKHosts |
XrdSysMutex | okHMutex |
XrdOucTrace * | eTrace |
int | lifetime |
Static Private Attributes | |
static const char * | TraceID = "NetSecurity" |
XrdNetSecurity::~XrdNetSecurity | ( | ) | [inline] |
void XrdNetSecurity::AddHost | ( | char * | hname | ) |
References XrdOucHash< T >::Add(), DEBUG, XrdNetDNS::getHostName(), Hash_dofree, HostList, XrdOucNList_Anchor::Insert(), and OKHosts.
Referenced by XrdConfig::xallow().
void XrdNetSecurity::AddNetGroup | ( | char * | hname | ) |
References DEBUG, NetGroups, and XrdNetTextList::next.
Referenced by XrdConfig::xallow().
char * XrdNetSecurity::Authorize | ( | struct sockaddr * | addr | ) |
References DEBUG, XrdOucNList_Anchor::Find(), XrdOucHash< T >::Find(), XrdNetDNS::getHostName(), HostList, hostOK(), inet_ntop(), XrdSysMutex::Lock(), NetGroups, XrdNetTextList::next, okHMutex, OKHosts, XrdNetTextList::text, and XrdSysMutex::UnLock().
Referenced by XrdNet::do_Accept_TCP(), and XrdNet::do_Accept_UDP().
char * XrdNetSecurity::hostOK | ( | char * | hname, |
const char * | ipname, | ||
const char * | why | ||
) | [private] |
References XrdOucHash< T >::Add(), DEBUG, Hash_dofree, lifetime, okHMutex, OKHosts, and XrdSysMutex::UnLock().
Referenced by Authorize().
void XrdNetSecurity::Merge | ( | XrdNetSecurity * | srcp | ) |
References HostList, NetGroups, XrdNetTextList::next, XrdOucNList_Anchor::Pop(), XrdOucNList_Anchor::Replace(), and XrdNetTextList::text.
Referenced by XrdNet::Secure().
void XrdNetSecurity::Trace | ( | XrdOucTrace * | et = 0 | ) | [inline] |
References eTrace.
XrdOucTrace* XrdNetSecurity::eTrace [private] |
Referenced by Trace(), and XrdNetSecurity().
XrdOucNList_Anchor XrdNetSecurity::HostList [private] |
Referenced by AddHost(), Authorize(), and Merge().
int XrdNetSecurity::lifetime [private] |
Referenced by hostOK(), and XrdNetSecurity().
XrdNetTextList* XrdNetSecurity::NetGroups [private] |
Referenced by AddNetGroup(), Authorize(), Merge(), and XrdNetSecurity().
XrdSysMutex XrdNetSecurity::okHMutex [private] |
Referenced by Authorize(), and hostOK().
XrdOucHash<char> XrdNetSecurity::OKHosts [private] |
Referenced by AddHost(), Authorize(), and hostOK().
const char * XrdNetSecurity::TraceID = "NetSecurity" [static, private] |