slim
slim copied to clipboard
refator: sensor's architecture redesign
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.
👇 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
Legend

can you also create an issue to track the not fixed discoveries
Here they go:
- #405
- #406