slim icon indicating copy to clipboard operation
slim copied to clipboard

refator: sensor's architecture redesign

Open iximiuz opened this issue 3 years ago • 1 comments

The redesign is supposed to make the codebase:

  • More (unit-)test friendly.
  • Prepared for IOContext (name tbd) introduction.
  • Prepared for incremental artifact storing.

Introduced abstractions:

  • Sensor - to abstract differences in the standalone and controlled execution flows.
  • Monitor (fanotify & ptrace) - makes an act of monitoring a noun instead of a verb (easier to pass around and interact with).
  • CompositeMonitor - to abstract multiple monitors behind single entity and simplify the code of the (controlled and standalone) sensors.

TODO:

  • IOContext (name tbd) - to abstract reading monitoring commands, sending events, errors, and logs back to the sensor user.

iximiuz avatar Sep 21 '22 17:09 iximiuz

👇 Click on the image for a new way to code review
  • Make big changes easier — review code in small groups of related files

  • Know where to start — see the whole change at a glance

  • Take a code tour — explore the change with an interactive tour

  • Make comments and review — all fully sync’ed with github

    Try it now!

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

ghost avatar Sep 21 '22 17:09 ghost

can you also create an issue to track the not fixed discoveries

kcq avatar Sep 29 '22 07:09 kcq

Here they go:

  • #405
  • #406

iximiuz avatar Sep 29 '22 13:09 iximiuz