[][src]Module fanotify::low_level::fanotify_init

Constants

FAN_CLASS_CONTENT

This value allows the receipt of events notifying that a file has been accessed and events for permission decisions if a file may be accessed.
It is intended for event listeners that need to access files when they already contain their finalcontent.
This notification class might be used by malware detection programs, for example.

FAN_CLASS_NOTIF

This is the default value. It does not need to be specified. This value only allows the receipt of events notifying that a file has been accessed.
Permission decisions before the file is accessed are not possible.

FAN_CLASS_PRE_CONTENT

This value allows the receipt of events notifying that a file has been accessed and events for permission decisions if a file may be accessed.
It is intended for event listeners that need to access files before they contain their final data.
This notification class might be used by hierarchical storage managers, for example.

FAN_CLOEXEC

Set the close-on-exec flag (FD_CLOEXEC) on the new file descriptor.
See the description of the O_CLOEXEC flag in open(2).

FAN_NONBLOCK

Enable the nonblocking flag (O_NONBLOCK) for the file descriptor.
Reading from the file descriptor will not block.
Instead, if no data is available, read(2) fails with the error EAGAIN

FAN_UNLIMITED_MARKS

Remove the limit of 8192 marks.
Use of this flag requires the CAP_SYS_ADMIN capability.

FAN_UNLIMITED_QUEUE

Remove the limit of 16384 events for the event queue.
Use of this flag requires the CAP_SYS_ADMIN capability.

Functions

fanotify_init