Page MenuHomeFreeBSD

audit: Add poll / select support
ClosedPublic

Authored by des on Thu, Jun 4, 10:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 9, 12:28 PM
Unknown Object (File)
Tue, Jun 9, 7:46 AM
Unknown Object (File)
Mon, Jun 8, 10:13 PM
Unknown Object (File)
Mon, Jun 8, 10:02 AM
Unknown Object (File)
Sat, Jun 6, 7:37 AM
Subscribers

Details

Summary

It was previously not possible to poll() or select() on the trigger
device, which made implementing proper signal handling in auditd
difficult.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73697
Build 70580: arc lint + arc unit

Event Timeline

des requested review of this revision.Thu, Jun 4, 10:15 PM
kevans added a subscriber: markj.

We might see if we can get a second opinion from @markj as he's dealt with some select/poll integration issues lately, but this is a pretty simple case.

This revision is now accepted and ready to land.Fri, Jun 5, 3:26 PM

I think this is ok, the selinfo is global so the recent lifetime problems we fixed don't apply here. If it were possible to destroy this device file you'd want to issue seldrain(), but I think that never happens.

This revision was automatically updated to reflect the committed changes.