*
* Authors:
* Steve Grubb <sgrubb@redhat.com>
*
*/
#ifndef IDS_CONFIG_HEADER
#define IDS_CONFIG_HEADER
#include <stdio.h>
#define REACTION_IGNORE 0x0000001
#define REACTION_LOG 0x0000002
#define REACTION_EMAIL 0x0000004
#define REACTION_TERMINATE_PROCESS 0x0000010
#define REACTION_TERMINATE_SESSION 0x0000100
#define REACTION_RESTRICT_ROLE 0x0001000
#define REACTION_PASSWORD_RESET 0x0002000
#define REACTION_LOCK_ACCOUNT_TIMED 0x0004000
#define REACTION_LOCK_ACCOUNT 0x0008000
#define REACTION_BLOCK_ADDRESS_TIMED 0x0010000
#define REACTION_BLOCK_ADDRESS 0x0020000
#define REACTION_SYSTEM_REBOOT 0x2000000
#define REACTION_SYSTEM_SINGLE_USER 0x4000000
#define REACTION_SYSTEM_HALT 0x8000000
struct ids_conf
{
unsigned int option_origin_failed_logins_threshold;
unsigned int option_origin_failed_logins_reaction;
unsigned int option_session_badness1_threshold;
unsigned int option_session_badness1_reaction;
unsigned int option_service_login_allowed;
unsigned int option_service_login_weight;
unsigned int option_root_login_allowed;
unsigned int option_root_login_weight;
unsigned int option_bad_login_weight;
};
int load_config(struct ids_conf *config);
void reset_config(struct ids_conf *config);
void free_config(struct ids_conf *config);
void dump_config(struct ids_conf *config, FILE *f);
#endif