1 /* @(#) $Id: config.c,v 1.32 2009/11/04 15:19:00 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 3) as published by the FSF - Free Software
15 #include "config/config.h"
17 int Read_Syscheck_Config(char * cfgfile)
23 syscheck.rootcheck = 0;
24 syscheck.disabled = 0;
25 syscheck.scan_on_start = 1;
26 syscheck.time = SYSCHECK_WAIT * 2;
27 syscheck.ignore = NULL;
28 syscheck.ignore_regex = NULL;
29 syscheck.scan_day = NULL;
30 syscheck.scan_time = NULL;
33 syscheck.realtime = NULL;
35 syscheck.registry = NULL;
36 syscheck.reg_fp = NULL;
41 if(ReadConfig(modules, cfgfile, &syscheck, NULL) < 0)
46 /* Reading shared config */
47 modules|= CAGENT_CONFIG;
48 ReadConfig(modules, AGENTCONFIG, &syscheck, NULL);
52 /* We must have at least one directory to check */
53 if(!syscheck.dir || syscheck.dir[0] == NULL)