Netlink Socket in C
Build
mkdir build
cd build
cmake ..
make
If you want to enable debugging in the build output, use the following command instead of cmake ..
cmake -DCMAKE_BUILD_TYPE=Debug ..
Run
To run the output executable file you need root permissions:
sudo ./main
Resources
- Monitoring Linux networking state using netlink
- linux process monitoring (exec, fork, exit, setuid, setgid)
- The Proc Connector and Socket Filters
- Detect new process creation instantly in linux
- How do you set GDB debug flag with cmake?
- sigaction() โ Examine or change a signal action
- Termination Signals