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 2) as published by the FSF - Free Software
16 /* ExecdConfig v0.1, 2006/03/24
17 * Read the config file
19 int ExecdConfig(char * cfgfile)
26 char *(xmlf[]) = {"ossec_config", "active-response", "disabled", NULL};
32 /* Reading XML file */
33 if(OS_ReadXML(cfgfile,&xml) < 0)
35 ErrorExit(XML_ERROR, ARGV0, cfgfile, xml.err, xml.err_line);
38 /* We do not validate the xml in here. It is done by other processes */
39 disable_entry = OS_GetOneContentforElement(&xml, xmlf);
42 if(strcmp(disable_entry, "yes") == 0)
46 else if(strcmp(disable_entry, "no") == 0)
52 merror(XML_VALUEERR, ARGV0,