Skip to content

sysklogd v2.4.1

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Aug 09:48

Changes

  • Fake microsecond timestamp to allow for improved log sorting:
    • in RFC3164 messages (that don't have this resolution)
    • in untrusted kernel messages
  • Dropped debian/ directory (moved to separate branch), to ease
    re-packaging by downstream
  • libsyslog now supports logging to remote servers, bypassing syslogd
  • Major updates to logger:
    • Support for logging to a remote host, -h HOST and -P PORT
    • Support for logging in RFC3164 format, -b, mostly for remote
      logging to syslog servers that do not support RFC5424
    • Support for overriding hostname -H NAME
    • Support for custom PID, e.g., a shell scripts PID, -I PID

Fixes

  • Fix #52: Prevent over-read when scanning a new-style kernel message.
    Found and fixed by Edward K. McGuire
  • Fix #53: prevent log file corruption when kernel messages contain
    control codes, notably \n. Instead, preserve kernel protective
    C-style hex encoding. For example, \n embedded in a message by a
    kernel-level facility is received as \x0a. Found and fixed by
    Edward K. McGuire
  • Fix #56: logging to remote machine stops after receiving a few
    SIGHUPs. Open remote socket count was not reset properly on SIGHUP.
    Problem introduced in v2.4.0. Reported by Edward K. McGuire
  • Fix gettimeofday() error handling to use same fallback to time()
  • Fix libsyslog opening and connecting to syslogd when LOG_NLOG is set
  • Fix libsyslog so it honors LOG_PTRIM when logging to stderr
  • Fix issue in RFC3164 output where the tag field could overflow.
    Spec. mandates tag never exceeds 32 characters