Fix eBPF FIM whodata for Amazon Linux - #37014
Merged
Merged
Conversation
Miguevrgo
force-pushed
the
fix/36457-ebpf-fim-whodata-4
branch
from
June 25, 2026 08:23
2b9d2d0 to
f73c0bb
Compare
…tion-4 Detect file move events into monitored folders in eBPF whodata mode
We are changing ebpf precompiled files, currently: 4.14.7 has 52 version 4.14.6 has 53 version To avoid any trouble in the future and with this precompiled versions, we are bumping to 54
Signed-off-by: Miguel Angel De la Vega Rodríguez <93781730+Miguevrgo@users.noreply.github.com>
Darioortegaleyva
self-requested a review
July 1, 2026 08:24
Miguevrgo
force-pushed
the
fix/36457-ebpf-fim-whodata-4
branch
from
July 1, 2026 08:39
1c391e8 to
73d70d1
Compare
MarcelKemp
approved these changes
Jul 1, 2026
Miguevrgo
force-pushed
the
fix/36457-ebpf-fim-whodata-4
branch
2 times, most recently
from
July 1, 2026 11:30
b62f3de to
f7a4dda
Compare
MarcelKemp
approved these changes
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This branch fixes an issue on older kernels, such as Amazon Linux 2023 and AL2, where the BPF
verifier rejects bpf_d_path() calls in LSM hooks, causing file events like create, write, and
delete to be silently dropped.
The previous workaround using kernel version guards has been removed. Instead, the bpf_d_path()
calls in the lsm/file_open and lsm/path_unlink hooks have been replaced with the existing
get_path_str_from_path() dentry-walk helper.
This completely removes the dependency on the verifier for path resolution and ensures that all file
events are correctly captured across all supported platforms without needing version fallbacks.
Evidence
Logs
Ubuntu 22.04 — kernel 5.15.0-160-generic — kprobe
Ubuntu 26.04 — kernel 7.0.0-22-generic — kprobe
Debian 13 (trixie) — kernel 6.12.48+deb13-amd64 — LSM(dpath)
Fedora 43 — kernel 6.17.7-300.fc43.x86_64 — LSM(dpath)
Amazon Linux 2023 — kernel 6.1.155-176.282.amzn2023.x86_64 — LSM(walk)
Amazon Linux 2 — kernel 5.15.209-147.245.amzn2.x86_64 — LSM(walk)
Fedora 40 — kernel 6.12.15-100.fc40.x86_64 — LSM(dpath)
Ubuntu 24 ARM
Artifacts Affected
wazuh-agentd(eBPF FIM whodata)Configuration options
No configuration changes.
Logs/Alerts example
See evidence above.
Tests