[Bug 241937] syslogd truncates logged messages to 480 bytes

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 23 16:53:14 UTC 2021


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

--- Comment #4 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=2d82b47a5b4ef18550565dd55628d51f54d0af2e

commit 2d82b47a5b4ef18550565dd55628d51f54d0af2e
Author:     Dmitry Wagin <dmitry.wagin at ya.ru>
AuthorDate: 2021-03-23 16:15:28 +0000
Commit:     Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-03-23 16:49:58 +0000

    syslogd: Increase message size limits

    Add a -M option to control the maximum length of forwarded messages.
    syslogd(8) used to truncate forwarded messages to 1024 bytes, but after
    commit 1a874a126a54 ("Add RFC 5424 syslog message output to syslogd.")
    applies a more conservative limit of 480 bytes for IPv4 per RFC 5426
    section 3.2.  Restore the old default behaviour of truncating to 1024
    bytes.  RFC 5424 specifies no upper limit on the length of forwarded
    messages, while for RFC 3164 the limit is 1024 bytes.

    Increase MAXLINE to 8192 bytes to correspond to commit 672ef817a192.

    Replaced bootfile[] size for MAXPATHLEN used in getbootfile(3) as a
    returned value. Using (MAXLINE+1) as a size for bootfile[] is excessive.

    PR:             241937
    MFC after:      1 month
    Differential Revision:  https://reviews.freebsd.org/D27206

 usr.sbin/syslogd/syslogd.8 |  6 ++++++
 usr.sbin/syslogd/syslogd.c | 33 +++++++++++++++++++++------------
 2 files changed, 27 insertions(+), 12 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-standards mailing list