[Bug 250014] usr.sbin/syslogd/syslogd.c: Forgotten changes for support RFC 5424
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 2 12:18:52 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250014
--- Comment #2 from Boris Korzun <drtr0jan at yandex.ru> ---
In RFC 3164 (bsd-format): The Domain Name MUST NOT be included in the HOSTNAME
field.
In RFC 5424 (ietf-format): The HOSTNAME field SHOULD contain the hostname and
the domain name of the originator in FQDN format.
Without the patch syslogd(8) uses trimdomain() for addresses received from
socket by socklist_recv_sock() (via cvthname()) and addresses used by config
filtering by readconfigfile() (via cfline()).
So, hostname filtering works incorrectly with "-O syslog" in next cases:
* using "+@" filtering - "localhost" (without domain name) is used for
comparing with FQDN-names (ex. "localhost.localdomain");
* using "+server.localdomain" filtering, "-H" flag and localdomain clients -
"server" (without domain name) is used for comparing with FQDN-names (ex.
"bsd.localdomain").
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list