[Bug 233217] [patch] syslogd: -a works the other way around with numeric IPv6

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 14 07:00:39 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233217

            Bug ID: 233217
           Summary: [patch] syslogd: -a works the other way around with
                    numeric IPv6
           Product: Base System
           Version: 11.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: berota at icepp.s.u-tokyo.ac.jp

Created attachment 199226
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=199226&action=edit
This patch reverses the wrong logic.

The -a option works the other way around with numeric IPv6 addresses.
When a numeric IPv6 address is given, syslogd will allow any hosts
with IPv6 addresses outside the specified host/network.

To reproduce:
The following will allow any hosts with IPv6 addresses *excluding*
xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx to log to this host.

# syslogd -Fd -a '[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:*'

About patch:
The attached patch fixes the wrong logic just by reversing it.
Although it was made for r338991, the questionable code was introduced
in the MFC at r335059.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list