Updated function and configurator manager names to the used hook.

This commit is contained in:
h3xduck
2022-01-26 13:04:23 -05:00
parent 9b366810b5
commit 2b50d376a6
9 changed files with 758 additions and 756 deletions

View File

@@ -14,8 +14,8 @@ module_config_t module_config = {
},
.fs_module = {
.all = ON,
.kprobe_ksys_read = OFF,
.kretprobe_vfs_read = OFF
.tp_sys_enter_read = OFF,
.tp_sys_exit_read = OFF
}
};
@@ -57,8 +57,8 @@ int setup_all_modules(){
if(config.fs_module.all == ON){
ret = attach_fs_all(attr.skel);
}else{
if(config.fs_module.kprobe_ksys_read == ON) ret = attach_kprobe_ksys_read(attr.skel);
if(config.fs_module.kretprobe_vfs_read == ON) ret = attach_kretprobe_vfs_read(attr.skel);
if(config.fs_module.tp_sys_enter_read == ON) ret = attach_tp_sys_enter_read(attr.skel);
if(config.fs_module.tp_sys_exit_read == ON) ret = attach_tp_sys_exit_read(attr.skel);
}
if(ret!=0) return -1;