102 |
static void check_gid(Service_T); |
static void check_gid(Service_T); |
103 |
static void check_size(Service_T); |
static void check_size(Service_T); |
104 |
static void check_perm(Service_T); |
static void check_perm(Service_T); |
105 |
void check_match(Service_T); |
static void check_match(Service_T); |
106 |
int check_match_ignore(Service_T, char *); |
static int check_match_ignore(Service_T, char *); |
107 |
void check_match_if(Service_T, char *); |
static void check_match_if(Service_T, char *); |
108 |
static int check_skip(Service_T); |
static int check_skip(Service_T); |
109 |
static int check_timeout(Service_T); |
static int check_timeout(Service_T); |
110 |
static void check_checksum(Service_T); |
static void check_checksum(Service_T); |
136 |
Service_T s; |
Service_T s; |
137 |
sigset_t ns, os; |
sigset_t ns, os; |
138 |
|
|
139 |
|
Run.handler_flag = HANDLER_PASSED; |
140 |
|
Event_queue_process(Run.eventlist); |
141 |
|
|
142 |
if(Run.doprocess) { |
if(Run.doprocess) { |
143 |
initprocesstree(&ptree, &ptreesize, &oldptree, &oldptreesize); |
initprocesstree(&ptree, &ptreesize, &oldptree, &oldptreesize); |
144 |
update_system_load(ptree, ptreesize); |
update_system_load(ptree, ptreesize); |
455 |
} |
} |
456 |
|
|
457 |
|
|
458 |
|
/** |
459 |
|
* Validate the general system indicators. In case of a fatal event |
460 |
|
* FALSE is returned. |
461 |
|
*/ |
462 |
|
int check_system(Service_T s) { |
463 |
|
return TRUE; |
464 |
|
} |
465 |
|
|
466 |
|
|
467 |
/* --------------------------------------------------------------- Private */ |
/* --------------------------------------------------------------- Private */ |
468 |
|
|
469 |
|
|
983 |
/** |
/** |
984 |
* Match content |
* Match content |
985 |
*/ |
*/ |
986 |
void check_match(Service_T s) { |
static void check_match(Service_T s) { |
987 |
char line[MATCH_LINE_LENGTH]; |
char line[MATCH_LINE_LENGTH]; |
988 |
FILE *file; |
FILE *file; |
989 |
int inode_checked=FALSE; |
int inode_checked=FALSE; |
1086 |
/** |
/** |
1087 |
* Match line for "ignore" statements |
* Match line for "ignore" statements |
1088 |
*/ |
*/ |
1089 |
int check_match_ignore(Service_T s, char *line) { |
static int check_match_ignore(Service_T s, char *line) { |
1090 |
|
|
1091 |
int rv=FALSE; |
int rv=FALSE; |
1092 |
Match_T ml; |
Match_T ml; |
1136 |
/** |
/** |
1137 |
* Match line for "if" statements |
* Match line for "if" statements |
1138 |
*/ |
*/ |
1139 |
void check_match_if(Service_T s, char *line) { |
static void check_match_if(Service_T s, char *line) { |
1140 |
|
|
1141 |
Match_T ml; |
Match_T ml; |
1142 |
int match_return; |
int match_return; |