-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Auditbeat] Add fanotify watcher support for File integrity module on Linux #31563
Comments
Fanotify APIThough The table below describes the feature set / flags available across different kernel versions -
To get information about the name of the directory/file that was modified the This means for Auditbeat to support the required features that matches SupportThe fanotify API is available only if the kernel was built with the Refer to LimitationsFanotify has certain limitations that might affect the implementation / application. Refer to |
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
Pinging @elastic/sec-linux-platform (Team:Security-Linux Platform) |
Closing because we are taking a different path than fanotify. The module will instead get a kprobe and eBPF backend implementation. |
Background
Auditbeat file_integrity on Linux uses
inotify
API for monitoring filesystem events. Though theinotify
provides a stable API across a wide range of kernel versions starting from 2.6.13 it has a few drawbacks.Users using
inotify
to monitor growing / large directories have observed performance issues (#26247).The Fanotify API introduced into Linux 2.6.37 (1, 2, 3) addresses some of the performance issues that is encountered when using
inotify
.Requirement
The requirement is to enable Auditbeat's file integrity module to choose a filesystem watcher on Linux.
Proposed configuration
Add a configuration setting to choose the
watcher
.watcher.linux
can hold the supported watchers (inotify
,fanotify
).Support
Auditbeat uses a Go library fsnotify for the
inotify
calls. The fsnotify library does not yet support calls tofanotify
system calls. It is unlikely this will be supported in the near future as mentioned in the issue fsnotify/fsnotify#114.Caveat
Not all
fanotify
return structures are defined / implemented in thesys/unix
package. Some of the undefined structures includefanotify_event_info_fid
,fanotify_event_info_header
.The text was updated successfully, but these errors were encountered: