|
Packit |
762fc5 |
/* aide, Advanced Intrusion Detection Environment
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* Copyright (C) 1999-2002,2006,2011,2015,2016 Rami Lehti, Pablo Virolainen,
|
|
Packit |
762fc5 |
* Richard van den Berg, Hannes von Haugwitz
|
|
Packit |
762fc5 |
* $Header$
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* This program is free software; you can redistribute it and/or
|
|
Packit |
762fc5 |
* modify it under the terms of the GNU General Public License as
|
|
Packit |
762fc5 |
* published by the Free Software Foundation; either version 2 of the
|
|
Packit |
762fc5 |
* License, or (at your option) any later version.
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* This program is distributed in the hope that it will be useful, but
|
|
Packit |
762fc5 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
762fc5 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
762fc5 |
* General Public License for more details.
|
|
Packit |
762fc5 |
*
|
|
Packit |
762fc5 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
762fc5 |
* along with this program; if not, write to the Free Software
|
|
Packit |
762fc5 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
Packit |
762fc5 |
*/
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
#ifndef _COMMANDCONF_H_INCLUDED
|
|
Packit |
762fc5 |
#define _COMMANDCONF_H_INCLUDED
|
|
Packit |
762fc5 |
#include "list.h"
|
|
Packit |
762fc5 |
#include "gen_list.h"
|
|
Packit |
762fc5 |
#include "db_config.h"
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
extern long conf_lineno;
|
|
Packit |
762fc5 |
extern int newlinelastinconfig;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
int commandconf(const char mode,const char* line);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
int conf_input_wrapper(char* buf, int max_size, FILE* in);
|
|
Packit |
762fc5 |
int db_input_wrapper(char* buf, int max_size, int db);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
list* append_rxlist(char*,DB_ATTR_TYPE,list*, RESTRICTION_TYPE);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_define(char*,char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_undefine(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
int do_ifxdef(int,char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
int do_ifxhost(int,char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_groupdef(char*,DB_ATTR_TYPE);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
RESTRICTION_TYPE get_restrictionval(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
DB_ATTR_TYPE get_groupval(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void putbackvariable(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
int handle_endif(int doit,int allow_else);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_dbdef(int, char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_verbdef(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_replevdef(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_repurldef(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_rootprefix(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void do_report_ignore_e2fsattrs(char*);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
int check_db_order(DB_FIELD*,int, DB_FIELD);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
void* get_db_key(void);
|
|
Packit |
762fc5 |
void* get_conf_key(void);
|
|
Packit |
762fc5 |
size_t get_db_key_len(void);
|
|
Packit |
762fc5 |
size_t get_conf_key_len(void);
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
extern const char* aide_key_1;
|
|
Packit |
762fc5 |
extern const char* aide_key_2;
|
|
Packit |
762fc5 |
extern const char* aide_key_3;
|
|
Packit |
762fc5 |
extern const char* aide_key_4;
|
|
Packit |
762fc5 |
extern const char* aide_key_5;
|
|
Packit |
762fc5 |
extern const char* aide_key_6;
|
|
Packit |
762fc5 |
extern const char* aide_key_7;
|
|
Packit |
762fc5 |
extern const char* aide_key_8;
|
|
Packit |
762fc5 |
extern const char* aide_key_9;
|
|
Packit |
762fc5 |
extern const char* aide_key_0;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
extern const char* db_key_1;
|
|
Packit |
762fc5 |
extern const char* db_key_2;
|
|
Packit |
762fc5 |
extern const char* db_key_3;
|
|
Packit |
762fc5 |
extern const char* db_key_4;
|
|
Packit |
762fc5 |
extern const char* db_key_5;
|
|
Packit |
762fc5 |
extern const char* db_key_6;
|
|
Packit |
762fc5 |
extern const char* db_key_7;
|
|
Packit |
762fc5 |
extern const char* db_key_8;
|
|
Packit |
762fc5 |
extern const char* db_key_9;
|
|
Packit |
762fc5 |
extern const char* db_key_0;
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
|
|
Packit |
762fc5 |
#endif
|