336 |
} *Size_T; |
} *Size_T; |
337 |
|
|
338 |
|
|
339 |
|
/** Defines uid object */ |
340 |
|
typedef struct myuid { |
341 |
|
uid_t uid; /**< Owner's uid */ |
342 |
|
int action; /**< Action in case of failure */ |
343 |
|
int event_flag; /**< TRUE if an event occured on this object */ |
344 |
|
Command_T exec; /**< Optional command to be executed upon a uid event*/ |
345 |
|
int has_error; /**< TRUE if the service has a UID error */ |
346 |
|
|
347 |
|
} *Uid_T; |
348 |
|
|
349 |
|
|
350 |
|
/** Defines gid object */ |
351 |
|
typedef struct mygid { |
352 |
|
gid_t gid; /**< Owner's gid */ |
353 |
|
int action; /**< Action in case of failure */ |
354 |
|
int event_flag; /**< TRUE if an event occured on this object */ |
355 |
|
Command_T exec; /**< Optional command to be executed upon a gid event*/ |
356 |
|
int has_error; /**< TRUE if the service has a GID error */ |
357 |
|
|
358 |
|
} *Gid_T; |
359 |
|
|
360 |
|
|
361 |
/** Defines procfs (or other mechanism) data */ |
/** Defines procfs (or other mechanism) data */ |
362 |
typedef struct myprocinfo { |
typedef struct myprocinfo { |
363 |
int pid; |
int pid; |
423 |
int nevery; /**< Counter for every. When nevery == every, check */ |
int nevery; /**< Counter for every. When nevery == every, check */ |
424 |
int has_checksum_error; /**< TRUE if the service has a checksum error */ |
int has_checksum_error; /**< TRUE if the service has a checksum error */ |
425 |
int has_permission_error; /**< TRUE if the service has a permission error */ |
int has_permission_error; /**< TRUE if the service has a permission error */ |
|
int has_uid_error; /**< TRUE if the service has a UID error */ |
|
|
int has_gid_error; /**< TRUE if the service has a GID error */ |
|
426 |
int def_every; /**< TRUE if every is defined for the service */ |
int def_every; /**< TRUE if every is defined for the service */ |
427 |
int def_timeout; /**< TRUE if timeout is defined for the service */ |
int def_timeout; /**< TRUE if timeout is defined for the service */ |
428 |
char *md5; /**< A md5 checksum computed for the path */ |
char *md5; /**< A md5 checksum computed for the path */ |
430 |
int visited; /**< Service visited flag, set if dependencies are used */ |
int visited; /**< Service visited flag, set if dependencies are used */ |
431 |
int depend_visited;/**< Depend visited flag, set if dependencies are used */ |
int depend_visited;/**< Depend visited flag, set if dependencies are used */ |
432 |
int perm; /**< Access permission */ |
int perm; /**< Access permission */ |
|
int uid; /**< Owner's uid */ |
|
|
int gid; /**< Owner's gid */ |
|
433 |
|
|
434 |
Dependant_T dependantlist; /**<Dependant service list */ |
Dependant_T dependantlist; /**<Dependant service list */ |
435 |
Device_T devicelist; /**< Device check list */ |
Device_T devicelist; /**< Device check list */ |
436 |
|
Gid_T gid; /**< Gid check */ |
437 |
Mail_T maillist; /**< Alert notification mailinglist */ |
Mail_T maillist; /**< Alert notification mailinglist */ |
438 |
Port_T portlist; /**< Portnumbers the service listens on */ |
Port_T portlist; /**< Portnumbers the service listens on */ |
439 |
Resource_T resourcelist; /**< Resouce check list */ |
Resource_T resourcelist; /**< Resouce check list */ |
440 |
Size_T sizelist; /**< Size check list */ |
Size_T sizelist; /**< Size check list */ |
441 |
Timestamp_T timestamplist; /**< Timestamp check list */ |
Timestamp_T timestamplist; /**< Timestamp check list */ |
442 |
|
Uid_T uid; /**< Uid check */ |
443 |
|
|
444 |
/** Runtime parameters */ |
/** Runtime parameters */ |
445 |
DeviceInfo_T devinfo; /**< Data for the device check */ |
DeviceInfo_T devinfo; /**< Data for the device check */ |