Summary: | Auditdistd suddenly stops working and leaves untransmitted files. | ||
---|---|---|---|
Product: | Base System | Reporter: | Peter Wemm <peter> |
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | asomers, brueffer, gonzo, pjd, rwatson |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Peter Wemm
2015-05-12 03:08:18 UTC
Is this still happening? A commit references this bug: Author: pjd Date: Thu Oct 4 05:48:10 UTC 2018 New revision: 339176 URL: https://svnweb.freebsd.org/changeset/base/339176 Log: When we look for a new trail file there might be a race between find trail file name and opening it. This race was not properly handled, because we were copying new name before checking for openat(2) error and when we were trying again we were starting with the next trail file. This could result in skipping distribution of such a trail file. Fix this problem by checking for ENOENT first (only for .not_terminated files) and then updating (or not) tr_filename before restarting the search. PR: 200139 Reported by: peter Approved by: re (kib) Changes: head/contrib/openbsm/bin/auditdistd/trail.c There is a commit referencing this PR, but it's still not closed and has been inactive for some time. Closing the PR as fixed but feel free to re-open it if the issue hasn't been completely resolved. Thanks |