553 |
EventAction_T action; /**< Description of the action upon event occurence */ |
EventAction_T action; /**< Description of the action upon event occurence */ |
554 |
} *Perm_T; |
} *Perm_T; |
555 |
|
|
556 |
|
/** Defines match object */ |
557 |
|
typedef struct mymatch { |
558 |
|
int ignore; /**< Ignore match */ |
559 |
|
int not; /**< Invert match */ |
560 |
|
char *match_string; /**< Match string */ |
561 |
|
char *match_path; /**< File with matching rules */ |
562 |
|
#ifdef HAVE_REGEX_H |
563 |
|
regex_t *regex_comp; /**< Match compile */ |
564 |
|
#endif |
565 |
|
EventAction_T action; /**< Description of the action upon event occurence */ |
566 |
|
|
567 |
|
/** For internal use */ |
568 |
|
struct mymatch *next; /**< next match in chain */ |
569 |
|
} *Match_T; |
570 |
|
|
571 |
|
|
572 |
/** Defines uid object */ |
/** Defines uid object */ |
573 |
typedef struct myuid { |
typedef struct myuid { |
603 |
mode_t st_mode; /**< Permission */ |
mode_t st_mode; /**< Permission */ |
604 |
uid_t st_uid; /**< Owner's uid */ |
uid_t st_uid; /**< Owner's uid */ |
605 |
gid_t st_gid; /**< Owner's gid */ |
gid_t st_gid; /**< Owner's gid */ |
606 |
|
ino_t st_ino; /**< Inode */ |
607 |
time_t timestamp; /**< Timestamp */ |
time_t timestamp; /**< Timestamp */ |
608 |
|
|
609 |
/* Device specific */ |
/* Device specific */ |
621 |
|
|
622 |
/* File specific */ |
/* File specific */ |
623 |
size_t st_size; /**< Size */ |
size_t st_size; /**< Size */ |
624 |
|
size_t readpos; /**< Position for regex matching */ |
625 |
|
ino_t st_ino_prev; /**< Previous inode for regex matching */ |
626 |
char *cs_sum; /**< Checksum */ |
char *cs_sum; /**< Checksum */ |
627 |
|
|
628 |
/* Process specific */ |
/* Process specific */ |
639 |
int cpu_percent; /**< pecentage * 10 */ |
int cpu_percent; /**< pecentage * 10 */ |
640 |
int total_cpu_percent; /**< pecentage * 10 */ |
int total_cpu_percent; /**< pecentage * 10 */ |
641 |
time_t uptime; /**< Process uptime */ |
time_t uptime; /**< Process uptime */ |
|
|
|
642 |
} *Info_T; |
} *Info_T; |
643 |
|
|
644 |
|
|
677 |
Port_T portlist; /**< Portnumbers to check, either local or at a host */ |
Port_T portlist; /**< Portnumbers to check, either local or at a host */ |
678 |
Resource_T resourcelist; /**< Resouce check list */ |
Resource_T resourcelist; /**< Resouce check list */ |
679 |
Size_T sizelist; /**< Size check list */ |
Size_T sizelist; /**< Size check list */ |
680 |
|
Match_T matchlist; /**< Content Match list */ |
681 |
Timestamp_T timestamplist; /**< Timestamp check list */ |
Timestamp_T timestamplist; /**< Timestamp check list */ |
682 |
Uid_T uid; /**< Uid check */ |
Uid_T uid; /**< Uid check */ |
683 |
|
|