Included a global config struct for controlling which hooks and functions of the rootkit should be active. Still work to be done in the bpf side

This commit is contained in:
h3xduck
2021-12-31 09:54:47 -05:00
parent d9a70f866c
commit 0863566292
13 changed files with 60 additions and 1204 deletions

View File

@@ -1,10 +1,25 @@
#ifndef __MOD_MANAGER_H
#define __MOD_MANAGER_H
#include <unistd.h>
#include <stdint.h>
struct module_config{
//TODO
};
#define ON 1
#define OFF 0
//Centralized configutation struct
typedef struct module_config_t{
struct xdp_module {
char all;
char xdp_receive;
} xdp_module;
struct sched_module {
char all;
char handle_sched_process_exec;
}sched_module;
} module_config_t;
extern module_config_t module_config;
#endif