Page MenuHomeFreeBSD

Fix tail -f.
ClosedPublic

Authored by markj on Dec 6 2019, 8:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 2, 10:10 PM
Unknown Object (File)
Wed, Sep 30, 6:31 PM
Unknown Object (File)
Mon, Sep 21, 3:29 PM
Unknown Object (File)
Mon, Sep 21, 3:26 PM
Unknown Object (File)
Mon, Sep 21, 3:15 PM
Unknown Object (File)
Sep 8 2026, 4:27 PM
Unknown Object (File)
Sep 8 2026, 12:10 AM
Unknown Object (File)
Sep 7 2026, 8:44 PM
Subscribers

Details

Reviewers
emaste
Group Reviewers
capsicum
Commits
rS355470: Fix tail -f in capability mode.
Summary

We were not adding CAP_EVENT to input file capabilities, so kevent()
always failed. tail implements a fallback mode to poll the file in this
case, so it still "works," but not when kern.trap_enotcap=1.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable