Date: Thu, 04 Oct 2018 05:48:49 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 200139] Auditdistd suddenly stops working and leaves untransmitted files. Message-ID: <bug-200139-227-XJLjiLGkxe@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-200139-227@https.bugs.freebsd.org/bugzilla/> References: <bug-200139-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200139 --- Comment #2 from commit-hook@freebsd.org --- 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 try= ing 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-200139-227-XJLjiLGkxe>