This is a project to controll the socket syscall using hijacking the syscall table. Configure file is in JSON format and transferred into kernel by netlink.
Working well on ubuntu-14.04.4-desktop-i386, system kernel info
Linux version 4.2.0-27-generic (buildd@lgw01-45) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) )
To compile ccdaemon
gcc -o ccdaemon ccdaemon.c -lmTo compile CCModule.ko
make clean
makeTo install module
insmod CCModule.koTo run ccdaemon
./ccdaemon black.jsonNote: This is only a demo project, it may cause make error on x64 platform since some different integer size.