Page MenuHomeFreeBSD

Make blacklist-helper commands emit a message when successful
ClosedPublic

Authored by lidl on Sep 29 2016, 8:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 19, 3:45 PM
Unknown Object (File)
Tue, Mar 19, 2:58 PM
Unknown Object (File)
Feb 22 2024, 5:08 AM
Unknown Object (File)
Feb 11 2024, 9:50 PM
Unknown Object (File)
Feb 10 2024, 9:44 AM
Unknown Object (File)
Dec 27 2023, 5:37 PM
Unknown Object (File)
Dec 27 2023, 5:10 PM
Unknown Object (File)
Dec 21 2023, 6:04 PM
Subscribers

Details

Summary

The blacklistd daemon expects to see a message on stdout, instead
of just relying on the exit value from any invoked programs.

Change the pf filtering to create multiple filters, attached under
a the "blacklist/*" anchor point. This prevents the filtering for
each port's filtering rule from overwriting the previously installed
filtering rule. Check for an existing filtering rule for each port,
so the installation of a given filtering rule only happens once.
Reinstalling the same rule resets the counters for the pf rule, and
we don't want that.

Diff Detail

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

Event Timeline

lidl retitled this revision from to Make blacklist-helper commands emit a message when successful.
lidl updated this object.
lidl edited the test plan for this revision. (Show Details)
lidl set the repository for this revision to rS FreeBSD src repository - subversion.
emaste edited edge metadata.
This revision is now accepted and ready to land.Sep 29 2016, 9:12 PM
contrib/blacklist/libexec/blacklistd-helper
93–94 ↗(On Diff #20827)

I think these should be <tabs...><4 spaces>echo OK for the 2nd-level indent

I have taken all the third-level indents and turned them into 4 spaces, as per emaste's request. There was also one line longer than 80 characters that I manually wrapped.

This revision was automatically updated to reflect the committed changes.