fanotify: How to check if fanotify API is enabled or disabled by kernel

2.1k views Asked by At

I want to write a functionality which will check whether fanotify API is enabled or disabled by kernel.

If it is enabled then only my program should proceed further otherwise it should return FALSE.

I want write a generic function which will work on all linux distros. Can someone please help to get this resolved?

After doing some search I have found it is configured in /boot/config-<kernel_version> file.

0

There are 0 answers