Repository navigation
[9.5](backport #54279) fix(auditbeat): restore non-recursive macOS FSEvents - #54452
Merged
Merged
Conversation
* fix(auditbeat): restore non-recursive macOS FSEvents * chore: format Auditbeat changelog fragment * test(auditbeat): cover non-recursive FSEvents watches Add a Darwin regression test for the user-visible isWatched behavior and include issue and pull request metadata in the changelog fragment. Signed-off-by: Slai.life <[email protected]> * auditbeat/module/file_integrity: use testing logger in FSEvents test The forbidigo linter rejects logp.NewLogger in new code. Use logptest.NewTestingLogger instead, which also routes log output through the test's t.Log. Assisted-By: Claude Code --------- Signed-off-by: Slai.life <[email protected]> Co-authored-by: Marc Guasch <[email protected]> Co-authored-by: Marc Guasch <[email protected]> (cherry picked from commit ee49816)
Contributor
🤖 GitHub commentsJust comment with:
|
5 of 6 tasks
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
Contributor
|
Dependency review finished without posting an analysis comment. If you expected a review, push a new commit to this pull request (or close and reopen it) to try again. Workflow run: https://github.com/elastic/beats/actions/runs/41808259117 |
marc-gr
approved these changes
Nov 4, 2026
Contributor
Author
|
This pull request is merged. |
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.
Proposed commit message
Return successful
os.Lstatcalls from the macOS FSEvents file-integrity reader without manufacturing an error. The previousfmt.Errorfcall returned a non-nil error even whenos.Lstatsucceeded, so non-recursive watches never populatedwatchedDirsand dropped all realtime events.Checklist
./changelog/fragments.Disruptive User Impact
None. This restores the intended non-recursive macOS file-integrity behavior.
How to test this PR locally
The added regression test is Darwin-only. The changed package can be tested with:
Related issues
Closes #54257
AI assistance
Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content. The implementation was reviewed against the repository source and contribution instructions.
This is an automatic backport of pull request #54279 done by [Mergify](https://mergify.com).