/fanotify

A simple fanotify example for watching events on a filesystem.

Primary LanguageCApache License 2.0Apache-2.0

Fanotify - Monitoring Filesystem Events

A simple C example of the fanotify system calls for linux.

Building

make

Running

To monitor all the close events on the root file-system run:

sudo ./fanotify CLOSE MOUNT /