From nobody Tue Jan 23 10:29:16 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TK3H23Y87z57lpn for ; Tue, 23 Jan 2024 10:29:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TK3H22W5hz59Kr for ; Tue, 23 Jan 2024 10:29:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706005758; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BnEz/QRrBmg+R3Iv2LDOniQW/pGXJOOctZMToRksFGg=; b=s8UTaeJFfYG8LU6QaRPtB2lRcfSONxXmz0LQnVzFE6X9rlQ3uhTtlaitVCMaGn4ebk+TlI +04+qAGCM7W7z09lBKDnarXvzixSgEprMljW5F0S3LlW9Q+n8EEnFUNOVE4fpv1A4wAy+8 C9yS2yZFtQwFoMAk20boaW3selGzgWYwH/08/NY2LIiQMUbM4aNeYjZq/r/lb62S/crIjO UzVQmm6KrxUpeWtCOGF7bfK58I14FKTugXgtVtMy2ChcarmF28SQbUNW8r1Bz509l+zPc5 8Bmte19jyFsw/+bKJAhxTC3vVZWCvo/pIKKnyvfHHLoICTpseSNAHqui3SlvVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706005758; a=rsa-sha256; cv=none; b=v3y8/t4ZpHHSFTR6uu8Cemr0RCgdOlLbFLJ5HNKnQiwp0xN44EqPkLwcESc+CaLEH/tI/o BTskDdqm+VcH0c2vClsLPJNkSU5HrQph7ltb3gN7T6HE2Uvqdoxv1OdbmSIA3T81Fmxq3o fTG90KcbTxu51YXDQuUP3B1p7lGqbb63tMjwfbHudKsT36ppr0TStla9nNWQCgspdgrEzz EkTfULsXgd/FCFPaZ3i7GZWlZeFexR+vx4rFbXdcetP+zcwit6Qb8WMNYvkAr+smMrlUoh 2+GKLaPMbEX7VkAsSf+z4R3YK38SutHvohWRw3/Zl0mpYPhoQoi2jt494kwwzw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TK3H21d3rzQvR for ; Tue, 23 Jan 2024 10:29:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40NATI0f070749 for ; Tue, 23 Jan 2024 10:29:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40NATIkq070748 for bugs@FreeBSD.org; Tue, 23 Jan 2024 10:29:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 220246] syslogd does not send RFC3164-conformant messages Date: Tue, 23 Jan 2024 10:29:16 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: easy, needs-qa, standards X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: michal.os@hotmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: mfc-stable14? mfc-stable13? X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220246 Michal Scigocki changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michal.os@hotmail.com --- Comment #6 from Michal Scigocki --- Created attachment 247881 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247881&action= =3Dedit patch with added rfc3164-strict format, against 15-CURRENT Hi, I had a look at RFC3164 and found a couple of interesting items: - Section 4.2 of RFC3164 states there are no set requirements for the conte= nts of the syslog packet. So the existing format is technically valid. - The format described in RFC3164 (i.e. "TIMESTAMP HOSTNAME MSG") is o= nly RECOMMENDED to be used. It's not enforced. - The "Forwarded from HOSTNAME:" field is not mentioned anywhere in RFC3164= . I found it originally came about in FreeBSD PR 7055, back in 1998. - Section 4.3.1 of RFC3164 states syslog relay servers that forward messages MUST do so without making any changes to the packet. Given this, I think the existing bsd/rfc3164 format should be kept as-is for backward compatibility, but a new optional format should be added that stri= ctly conforms to the recommended format defined in RFC3164. I have attached a new patch based on Bryan Drewery's patch. It adds the thi= rd optional format to the -O flag, "strict" or "rfc3164-strict", which adds the hostname and excludes "Forwarded from" field in the network syslog message,= and also updates the man page. --=20 You are receiving this mail because: You are the assignee for the bug.=