Skip to content

fengjixuchui/linux-netlink-process-monitoring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linux-netlink-process-monitoring

Brief

Linux process monitor implemented using Netlink mechanism.
This monitor allows registration of callbacks on Linux process events (exec, forc etc.).

Permissions

Since only supoer users can open netlinc communication ports, sudo have
to be used when running any process monitoring processes.

Build

This project is using Cmake to generate make files.
To generate project binaries execute the following commands
while starting from CMakeLists.txt directory:

  • mkdir build
  • cd build
  • cmake ..
  • make

Binaries

lib_process_monitor

Static library containig all process monitoring functionality.

monitor_example

Executable that uses lib_process_monitor to log process events.
This executable registers logger callback to the process events monitor
and prints events to stdout.

TODOs

  • Callback context should be shared_ptr, and be released when callback is deleted.
  • Limit max number of messages in queue.

About

Library that allows register callbacks on linux process events (fork, exec, etc.)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.1%
  • CMake 3.9%