Imported Upstream version 2.5.1
[ossec-hids.git] / src / rootcheck / config.c
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All right reserved.
5  *
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 2) as published by the FSF - Free Software
9  * Foundation
10  */
11
12 #ifdef OSSECHIDS
13 #include "shared.h"
14 #include "rootcheck.h"
15 #include "config/config.h"
16
17
18
19 /* Read_Rootcheck_Config: Reads the rootcheck config
20  */
21 int Read_Rootcheck_Config(char * cfgfile)
22 {
23     int modules = 0;
24
25     modules|= CROOTCHECK;
26
27     if(ReadConfig(modules, cfgfile, &rootcheck, NULL) < 0)
28         return(OS_INVALID);
29
30
31     #ifdef CLIENT
32     /* Reading shared config */
33     modules|= CAGENT_CONFIG;
34     ReadConfig(modules, AGENTCONFIG, &rootcheck, NULL);
35     #endif
36                   
37     return(0);
38 }
39
40 /* EOF */
41 #endif