[−][src]Module fanotify::low_level
Structs
FAN_EVENT_METADATA_LEN | Get current platform sizeof of fanotify_event_metadata. |
fanotify_event_metadata | |
fanotify_response | It is used to control file access. |
Constants
AT_EMPTY_PATH | |
AT_FDCWD | |
AT_NO_AUTOMOUNT | |
AT_REMOVEDIR | |
AT_SYMLINK_FOLLOW | |
AT_SYMLINK_NOFOLLOW | |
FANOTIFY_METADATA_VERSION | This const is used to be compared to vers field of fanotify_event_metadata to verify that the structures returned at run time match the structures defined at compile time. |
FAN_ACCESS | Create an event when a file or directory is accessed (read). |
FAN_ACCESS_PERM | Create an event when a permission to read a file or directoryis requested. |
FAN_ALLOW | Allow the file operation. |
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. |
FAN_CLASS_NOTIF | This is the default value. It does not need to be specified. |
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. |
FAN_CLOEXEC | Set the close-on-exec flag (FD_CLOEXEC) on the new file descriptor. |
FAN_CLOSE | A file is closed (FAN_CLOSE_WRITE|FAN_CLOSE_NOWRITE). |
FAN_CLOSE_NOWRITE | Create an event when a read-only file or directory is closed. |
FAN_CLOSE_WRITE | Create an event when a writable file is closed. |
FAN_DENY | Deny the file operation. |
FAN_EVENT_ON_CHILD | Events for the immediate children of marked directories shall be created. |
FAN_MARK_ADD | The events in mask will be added to the mark mask (or to the ignore mask). mask must be nonempty or the error EINVAL will occur. |
FAN_MARK_DONT_FOLLOW | If pathname is a symbolic link, mark the link itself, rather than the file to which it refers. |
FAN_MARK_FILESYSTEM | Mark the filesystem specified by pathname. |
FAN_MARK_FLUSH | Remove either all marks for filesystems, all marks for mounts,or all marks for directories and files from the fanotify group. |
FAN_MARK_IGNORED_MASK | The events in mask shall be added to or removed from the ignore mask. |
FAN_MARK_IGNORED_SURV_MODIFY | The ignore mask shall survive modify events. |
FAN_MARK_INODE | Mark the inode specified by pathname. |
FAN_MARK_MOUNT | Mark the mount point specified by pathname. If pathname is not itself a mount point, the mount point containing pathname will be marked. |
FAN_MARK_ONLYDIR | If the filesystem object to be marked is not a directory, the error ENOTDIR shall be raised. |
FAN_MARK_REMOVE | The events in argument mask will be removed from the mark mask (or from the ignore mask). mask must be nonempty or the error EINVAL will occur. |
FAN_MODIFY | Create an event when a file is modified (write). |
FAN_NOFD | Indicates a queue overflow. |
FAN_NONBLOCK | Enable the nonblocking flag (O_NONBLOCK) for the file descriptor. |
FAN_ONDIR | Create events for directories—for example, when opendir(3),readdir(3) (but see BUGS), and closedir(3) are called. |
FAN_OPEN | Create an event when a file or directory is opened. |
FAN_OPEN_PERM | Create an event when a permission to open a file or directory is requested. |
FAN_Q_OVERFLOW | The event queue exceeded the limit of 16384 entries. |
FAN_UNLIMITED_MARKS | Remove the limit of 8192 marks. |
FAN_UNLIMITED_QUEUE | Remove the limit of 16384 events for the event queue. |
O_APPEND | |
O_CLOEXEC | |
O_DSYNC | |
O_LARGEFILE | |
O_NOATIME | |
O_NONBLOCK | |
O_RDONLY | This value allows only read access. |
O_RDWR | This value allows read and write access. |
O_SYNC | |
O_WRONLY | This value allows only write access. |
Functions
close_fd | |
fanotify_init | Initializes a new fanotify group and returns a file descriptor for the event queue associated with the group. |
fanotify_mark | Adds, removes, or modifies an fanotify mark on a filesystem object. |
fanotify_read |