new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / rootcheck / config.c
1 /* Copyright (C) 2009 Trend Micro Inc.
2  * All right reserved.
3  *
4  * This program is a free software; you can redistribute it
5  * and/or modify it under the terms of the GNU General Public
6  * License (version 2) as published by the FSF - Free Software
7  * Foundation
8  */
9
10 #ifdef OSSECHIDS
11 #include "shared.h"
12 #include "rootcheck.h"
13 #include "config/config.h"
14
15
16 /* Read the rootcheck config */
17 int Read_Rootcheck_Config(const char *cfgfile)
18 {
19     int modules = 0;
20
21     modules |= CROOTCHECK;
22     if (ReadConfig(modules, cfgfile, &rootcheck, NULL) < 0) {
23         return (OS_INVALID);
24     }
25
26 #ifdef CLIENT
27     /* Read shared config */
28     modules |= CAGENT_CONFIG;
29     ReadConfig(modules, AGENTCONFIG, &rootcheck, NULL);
30 #endif
31
32     return (0);
33 }
34 #endif /* OSSECHIDS */
35