1 /* 2 * AIDE (Advanced Intrusion Detection Environment) 3 * 4 * Copyright (C) 1999-2002, 2006, 2011, 2015-2016, 2020 Rami Lehti, 5 * Pablo Virolainen, Richard van den Berg, Hannes von Haugwitz 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as 9 * published by the Free Software Foundation; either version 2 of the 10 * License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, but 13 * WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License along 18 * with this program; if not, write to the Free Software Foundation, Inc., 19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 20 */ 21 22 #ifndef _COMMANDCONF_H_INCLUDED 23 #define _COMMANDCONF_H_INCLUDED 24 #include "rx_rule.h" 25 #include "list.h" 26 #include <stdio.h> 27 #include <stdbool.h> 28 #include "db_config.h" 29 #include "db.h" 30 31 int parse_config(char *, char *, char *); 32 33 int conf_input_wrapper(char* buf, int max_size, FILE* in); 34 int db_input_wrapper(char*, int, database*); 35 36 bool add_rx_rule_to_tree(char*, RESTRICTION_TYPE, DB_ATTR_TYPE, int, seltree*, int, char*, char*); 37 38 void do_define(char*,char*, int, char*, char*); 39 40 void do_undefine(char*, int, char*, char*); 41 42 DB_ATTR_TYPE do_groupdef(char*,DB_ATTR_TYPE); 43 44 DB_ATTR_TYPE get_groupval(char*); 45 46 bool do_dbdef(DB_TYPE, char*, int, char*, char*); 47 48 bool do_reportlevel(char *, int, char*, char*); 49 50 void do_replevdef(char*); 51 52 bool do_repurldef(char*, int, char*, char*); 53 54 void do_rootprefix(char*, int, char*, char*); 55 56 void do_report_ignore_e2fsattrs(char*, int, char*, char*); 57 #endif 58