How to check if FANOTIFY is enabled in Kernel

fanotify

Using the following command, you can verify if the FANOTIFY is enabled in the kernel.

# cat /boot/config-$(uname -r) | grep FANOTIFY
CONFIG_FANOTIFY=y
CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y

FANOTIFY is built in the kernel, so there is no need to load other modules. It is enabled by default in CentOS 7,8 and AlmaLinux 8.

Leave a Reply