nowsecure / fsmon

monitor filesystem on iOS / OS X / Android / FirefoxOS / Linux
https://www.nowsecure.com
MIT License
881 stars 151 forks source link

Recursively monitor everything #52

Open dumblob opened 2 years ago

dumblob commented 2 years ago

Does this monitor all files & directories recursively or only the one given directory or file?

trufae commented 2 years ago

That depends on the backend selected. not all filesystem monitor kernel apis allow to receive events on recursive inodes. But fsmon can do that by hooking all of them and dynamically adding/removing nodes when created/deleted, but that's far from perfect and way slower compared to use the right backend for it

dumblob commented 2 years ago

I mean I couldn't find any command line argument for this and the documentation is silent about whether the default behavior is recursive or not.