[root@localhost ~]# cd /www/server/panel/plugin/bt_hids/LKM/
[root@localhost LKM]# make clean && make
make -C /usr/src/kernels/3.10.0-1160.119.1.el7.x86_64 M=/home/www/server/panel/plugin/bt_hids/LKM clean
make[1]: 进入目录“/usr/src/kernels/3.10.0-1160.119.1.el7.x86_64”
CLEAN /home/www/server/panel/plugin/bt_hids/LKM/.tmp_versions
CLEAN /home/www/server/panel/plugin/bt_hids/LKM/Module.symvers
make[1]: 离开目录“/usr/src/kernels/3.10.0-1160.119.1.el7.x86_64”
make -C test clean
make[1]: 进入目录“/home/www/server/panel/plugin/bt_hids/LKM/test”
make[1]: 离开目录“/home/www/server/panel/plugin/bt_hids/LKM/test”
|-----------------------------------|
| building HIDS kernel module |
|-----------------------------------|
make -C /usr/src/kernels/3.10.0-1160.119.1.el7.x86_64 M=/home/www/server/panel/plugin/bt_hids/LKM modules
make[1]: 进入目录“/usr/src/kernels/3.10.0-1160.119.1.el7.x86_64”
CC [M] /home/www/server/panel/plugin/bt_hids/LKM/src/init.o
CC [M] /home/www/server/panel/plugin/bt_hids/LKM/src/trace.o
CC [M] /home/www/server/panel/plugin/bt_hids/LKM/src/trace_buffer.o
CC [M] /home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.o
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:2413:3: 警告:从不兼容的指针类型初始化 [默认启用]
.hook = smith_nf_udp_v4_handler,
^
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:2413:3: 警告:(在‘g_smith_nf_hooks[0].hook’的初始化附近) [默认启用]
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:2420:3: 警告:从不兼容的指针类型初始化 [默认启用]
.hook = smith_nf_udp_v6_handler,
^
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:2420:3: 警告:(在‘g_smith_nf_hooks[1].hook’的初始化附近) [默认启用]
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:2604:17: 警告:从不兼容的指针类型初始化 [默认启用]
.hook = smith_nf_psad_v4_handler,
^
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:2604:17: 警告:(在‘g_smith_nf_psad[0].hook’的初始化附近) [默认启用]
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:2611:17: 警告:从不兼容的指针类型初始化 [默认启用]
.hook = smith_nf_psad_v6_handler,
^
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:2611:17: 警告:(在‘g_smith_nf_psad[1].hook’的初始化附近) [默认启用]
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:1400:5: 警告:‘compat_execveat_entry_handler’定义后未使用 [-Wunused-function]
int compat_execveat_entry_handler(struct kretprobe_instance *ri,
^
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:1419:5: 警告:‘execveat_entry_handler’定义后未使用 [-Wunused-function]
int execveat_entry_handler(struct kretprobe_instance *ri, struct pt_regs *regs)
^
In file included from /home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:7:0:
/home/www/server/panel/plugin/bt_hids/LKM/src/../include/smith_hook.h:151:12: 警告:‘memfd_create_kprobe_pre_handler’声明为‘static’却从未定义过 [-Wunused-function]
static int memfd_create_kprobe_pre_handler(struct kprobe *p, struct pt_regs *regs);
^
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c: 在函数‘execve_entry_handler’中:
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:1443:17: 警告:此函数中的‘argv_ptr’在使用前未初始化 [-Wuninitialized]
get_execve_data(argv_ptr, env_ptr, data);
^
/home/www/server/panel/plugin/bt_hids/LKM/src/smith_hook.c:1443:17: 警告:此函数中的‘env_ptr’在使用前未初始化 [-Wuninitialized]
CC [M] /home/www/server/panel/plugin/bt_hids/LKM/src/anti_rootkit.o
CC [M] /home/www/server/panel/plugin/bt_hids/LKM/src/filter.o
CC [M] /home/www/server/panel/plugin/bt_hids/LKM/src/util.o
LD [M] /home/www/server/panel/plugin/bt_hids/LKM/hids_driver.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/www/server/panel/plugin/bt_hids/LKM/hids_driver.mod.o
LD [M] /home/www/server/panel/plugin/bt_hids/LKM/hids_driver.ko
make[1]: 离开目录“/usr/src/kernels/3.10.0-1160.119.1.el7.x86_64”
make -C test
make[1]: 进入目录“/home/www/server/panel/plugin/bt_hids/LKM/test”
|---------------------------------|
| building HIDS pipe reader |
|---------------------------------|
CC main.ou
building test programs
CC rst
make[1]: 离开目录“/home/www/server/panel/plugin/bt_hids/LKM/test”
[root@localhost LKM]# ^C |