Go to the source code of this file.
Classes | |
struct | hostclonestruct |
struct | trigger_rule |
Trigger rewrite rule database item structure. More... | |
struct | userclonestruct |
Structure describing a username trigger. More... | |
Typedefs | |
typedef userclonestruct | UserClone |
A user@ clone trigger element. | |
typedef hostclonestruct | HostClone |
clone trigger element | |
typedef trigger_rule | CloneRule |
A clonerule element. | |
Functions | |
CloneRule * | GetCrule (char *) |
Retrieve a clone rule by mask or number for oper edit purposes. | |
CloneRule * | GetCruleMatch (char *) |
Find any matching rules. | |
CloneRule * | NewCrule () |
Creates a new clone rule object. | |
void | AddCrule (CloneRule *, int) |
Add an alocated rule rule to the linked list at point 'n'. | |
void | RemoveCrule (CloneRule *) |
Remove a clone rule from the linked list. | |
void | UpdateCrule (CloneRule, CloneRule *) |
int | addClone (char *, char *, char *) |
Registers an online user with the clone detection system. | |
void | delClone (char *, char *) |
Remove a client from the clone database. | |
HostClone * | getCloneData (char *) |
Retrieves the clone information for a machine. | |
UserClone * | addUserClone (HostClone *, char *) |
Adds a user's username information to the user clone database for their hostname. | |
void | delUserClone (HostClone *, UserClone *) |
Delete information on a user@ from a cloneinfo machine item. | |
UserClone * | getUserCloneData (HostClone *, char *) |
Get clone-detection-related information on a user from a host clone record and knowledge of a username. | |
void | initCloneData (HostClone *) |
Initializes a clone host detection structure. | |
Variables | |
CloneRule * | first_crule |
Constants and structure data used by clone detection
Max Byrd
Greg Poma
James Hess
Definition in file clone.h.
|
|
Add an alocated rule rule to the linked list at point 'n'.
Definition at line 344 of file clone.c. References CloneRule, first_crule, and trigger_rule::next. Referenced by readTriggerData(). |
|
Adds a user's username information to the user clone database for their hostname.
Definition at line 614 of file clone.c. References CloneRule, userclonestruct::clones, hostclonestruct::firstUser, trigger_rule::flags, hostclonestruct::flags, GetCruleMatch(), getUserCloneData(), hostclonestruct::host, HostClone, hostclonestruct::lastUser, MakeUserHost(), userclonestruct::next, oalloc(), userclonestruct::previous, trigger_rule::trigger, hostclonestruct::trigger, userclonestruct::trigger, userclonestruct::user, UserClone, and trigger_rule::utrigger. Referenced by addClone(). |
|
Remove a client from the clone database.
Definition at line 663 of file clone.c. References clonehashent::clone, CLONE_ALERT, CloneHash, userclonestruct::clones, hostclonestruct::clones, CTime, delUserClone(), find_palert(), firstClone, hostclonestruct::flags, free_palert(), getCloneData(), getHashKey(), getUserCloneData(), hostclonestruct::hashnext, hostclonestruct::hashprev, hostclonestruct::host, HostClone, clonehashent::lastclone, lastClone, hostclonestruct::next, hostclonestruct::previous, remove_palert(), userclonestruct::trigger, hostclonestruct::trigger, userclonestruct::uflags, and UserClone. Referenced by addClone(), and remUser(). |
|
Retrieves the clone information for a machine.
Definition at line 752 of file clone.c. References clonehashent::clone, CloneHash, getHashKey(), hostclonestruct::hashnext, hostclonestruct::host, and HostClone. Referenced by addClone(), and delClone(). |
|
Retrieve a clone rule by mask or number for oper edit purposes.
Definition at line 289 of file clone.c. References CloneRule, first_crule, trigger_rule::mask, mask(), and trigger_rule::next. |
|
Find any matching rules.
Definition at line 315 of file clone.c. References CloneRule, first_crule, trigger_rule::mask, match(), and trigger_rule::next. Referenced by addClone(), and addUserClone(). |
|
Initializes a clone host detection structure.
Definition at line 463 of file clone.c. References hostclonestruct::clones, hostclonestruct::firstUser, hostclonestruct::flags, hostclonestruct::hashnext, hostclonestruct::hashprev, hostclonestruct::host, HostClone, hostclonestruct::lastUser, hostclonestruct::next, hostclonestruct::previous, and hostclonestruct::trigger. Referenced by addClone(). |
|
Creates a new clone rule object.
Definition at line 334 of file clone.c. References CloneRule, and oalloc(). Referenced by readTriggerData(). |
|
Remove a clone rule from the linked list.
Definition at line 444 of file clone.c. References CloneRule, first_crule, and trigger_rule::next. |
|
Apply a crule to a trigger if they are in sync 'orig' is what the rule looked like before the update and is used for the 'sync' determination A rule that is in sync with a trigger either completely matches the trigger or if the trigger completely matches the defaults. Definition at line 399 of file clone.c. References CloneRule, firstClone, hostclonestruct::firstUser, trigger_rule::flags, hostclonestruct::flags, hostclonestruct::host, HostClone, MakeUserHost(), trigger_rule::mask, match(), userclonestruct::next, hostclonestruct::next, userclonestruct::trigger, trigger_rule::trigger, hostclonestruct::trigger, userclonestruct::user, UserClone, and trigger_rule::utrigger. |
|
First clone rule item Definition at line 132 of file clone.h. Referenced by AddCrule(), GetCrule(), GetCruleMatch(), RemoveCrule(), and saveTriggerData(). |