Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Oct 2020 12:18:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 250014] usr.sbin/syslogd/syslogd.c: Forgotten changes for support RFC 5424
Message-ID:  <bug-250014-227-irotcxuuC7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-250014-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-250014-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250014

--- Comment #2 from Boris Korzun <drtr0jan@yandex.ru> ---
In RFC 3164 (bsd-format): The Domain Name MUST NOT be included in the HOSTN=
AME
field.
In RFC 5424 (ietf-format): The HOSTNAME field SHOULD contain the hostname a=
nd
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").

--=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-250014-227-irotcxuuC7>