fanotify_init.2: ERRORS: ENOSYS if not available

fanotify_init() may fail with ENOSYS, if the kernel
was configured without setting CONFIG_FANOTIFY=y.

Tested with an appropriately configured kernel 3.14.2.8

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Heinrich Schuchardt 2014-05-01 07:47:11 +02:00 committed by Michael Kerrisk
parent ce430f41fe
commit a8972eed32
1 changed files with 7 additions and 0 deletions

View File

@ -191,6 +191,13 @@ The number of fanotify groups of the user exceeds 128.
.B ENOMEM
The allocation of memory for the notification group failed.
.TP
.B ENOSYS
This kernel does not implement
.BR fanotify_init ().
To make the fanotify API available,
.B CONFIG_FANOTIFY
has to be enabled in the Linux configuration.
.TP
.B EPERM
The operation is not permitted because the caller lacks the
.B CAP_SYS_ADMIN