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

--- Comment #2 from Boris Korzun <[email protected]> ---
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to