/inotify-mitm

An LD_PRELOAD hook for relaying network fsevents to Linux

Primary LanguageC

inotify mitm

This is an experiment in trying to hook inotify calls so that they can be proxied to a network relay like https://github.com/guard/listen#forwarding-file-events-over-tcp.

Example

make all
LD_PRELOAD=$PWD/inotify_hook.so inotifywait -m -r -e modify,attrib,close_write,move,create,delete /tmp

Then in another shell:

touch /tmp/llamas

References