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)
Sun, Dec 8, 3:41 PM
Unknown Object (File)
Oct 4 2024, 2:09 PM
Unknown Object (File)
Oct 4 2024, 6:06 AM
Unknown Object (File)
Oct 4 2024, 1:33 AM
Unknown Object (File)
Oct 1 2024, 1:06 AM
Unknown Object (File)
Sep 30 2024, 5:41 PM
Unknown Object (File)
Sep 27 2024, 3:24 PM
Unknown Object (File)
Sep 27 2024, 11:02 AM
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.