Date: Thu, 28 Jun 2018 06:01:32 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 229381] reads to /dev/audit aren't interruptible Message-ID: <bug-229381-227-rR04XBKbpT@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-229381-227@https.bugs.freebsd.org/bugzilla/> References: <bug-229381-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=229381 Alan Somers <asomers@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@FreeBSD.org |asomers@FreeBSD.org Status|New |In Progress Component|kern |bin --- Comment #2 from Alan Somers <asomers@FreeBSD.org> --- I figured it out. The signal handler code is helpfully restarting the syscall for me. read(2) is actually returning to userland, but not to the stack from whence I called it. I need to use sigaction without SA_RESTART or siginterrupt to fix it. As is, auditd is using plain signal(), which automatically includes SA_RESTART. -- 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-229381-227-rR04XBKbpT>
