Best Linux Filesystem Filter Option

Best linux filesystem filter option?

I have chosen RedirFS Redirecting Filesystem Framework.

  • similar to windows minifilter drivers in many ways
  • simple enough and featurefull
  • has examples of programs
  • nice docs (but scattered)

Filter df -h to only show 'Mounted on' part

df --output=target

If you need mount targets, you can also look at findmnt. It has tons of formatting options, the list you want can be done with

$ findmnt --real -O TARGET

How to trap file access attempts with a filter driver (kernel) and offer dialog to allow/deny (user)?

You (a.k.a. I) have pretty much enumerated the possibilities. Either poll the way FileMon does, or pass an event. Passing the event is probably a bit more error prone, and if you aren't a threading guru then there's probably more chance for error. But if you tend to make lots of mistakes then device drivers may not be for you...skydiving might be a poor choice too.

I'll offer taking a look at this project, but please note the disclaimers in the README. (It is only a test and investigation):

https://github.com/hostilefork/CloneLocker

And yes, to the extent that Microsoft and their driver model is to be something one worries about, miniFilters are the better choice these days.



Related Topics



Leave a reply



Submit