Date: Wed, 14 Nov 2018 07:00:35 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 233217] [patch] syslogd: -a works the other way around with numeric IPv6 Message-ID: <bug-233217-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233217 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@FreeBSD.org Reporter: berota@icepp.s.u-tokyo.ac.jp Created attachment 199226 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D199226&action= =3Dedit 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233217-227>