carloslack / KoviD

Linux kernel rootkit
Other
283 stars 54 forks source link

Add CMake Build System with Testing Infra #128

Closed djolertrk closed 4 weeks ago

djolertrk commented 4 weeks ago

Please make sure you install llvm-dev-18 package as well as qemu-system package.

Simple way of testing (from root folder of the LKM source code):

$ mkdir build && cd build
$ cmake ../ -DKOVID_LINUX_VERSION=5.10 -DKERNEL_DIR=/home/projects/private/kovid/linux -DKOVID_LINUX_VERSION=5.10 -DCMAKE_C_COMPILER=gcc && make PROCNAME="myprocname" && make check-kovid

NOTE: KERNEL_DIR points to source code of linux. We now test version 5.x, so please checkout to 3b3005151a9b094c5bbd9a5498740e300e84d416.