Best linux filesystem filter option? [closed]

假如想象 提交于 2019-12-21 20:53:34

问题


I need a linux filesystem filter with which to enforce ACL policy on filesystem calls dynamically (allow/deny read/writes based on stuff computed at runtime).

So far I have stumbled onto DazukoFS and Related Work.
What I dont like about DazukoFS is that it has to be compiled for each kernel release.

  1. Is there some user-mode library that can filter filesystem calls dynamically?
  2. If not, is there some kernel-mode library that can filter FS calls dynamically, and not compile it for each kernel release?
  3. If not, what is the best choice among DazukoFS and others ?

回答1:


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)



回答2:


If fanotify ever gets into the kernel, it would provide precisely what you're asking for.

But unfortunately it hasn't got in yet.

EDIT:

fanotify has been merged into 2.6.36.

Pull request was: http://lkml.org/lkml/2010/8/6/273



来源:https://stackoverflow.com/questions/3202431/best-linux-filesystem-filter-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!