notify-rs / notify

🔭 Cross-platform filesystem notification library for Rust.
https://docs.rs/notify
2.77k stars 222 forks source link

A BPF Backend #628

Open e-dant opened 3 months ago

e-dant commented 3 months ago

I've been toying with an (e)BPF filesystem watcher, here.

It was made out of some frustration with the filesystem watchers available on Linux. Namely:

So the bpf watcher was born.

For security-oriented applications that want to watch almost every filesystem on the disk, I think bpf is the way to go.

Fielding your thoughts. With some work, would it fit with this project?

dfaust commented 2 months ago

I don't have much time to work on this, but I find it very interesting.

My knowledge of BPF is limited, but I can image having additional notify-bpf-* crates tailored to specific use-cases. Similar to the debouncer crates.