Skip to content

Using "systemd.log_level=debug systemd.log_target=kmsg" causes systemd to send "Executing: ..." message to remote clients #5401

@bmasonrh

Description

@bmasonrh

Submission type

  • Bug report
  • Request for enhancement (RFE)

systemd version the issue has been seen with

systemd-219-30.el7_3.6 in RHEL 7
systemd-229-18.fc24.x86_64

Used distribution

RHEL 7
Fedora 24

In case of bug report: Unexpected behaviour you saw

When LogLevel=debug and LogTarget=kmsg, systemd will send the message
"Executing: /path/to/exececutable" to the socket that is connected
to the remote client in a socket-based activation unit. This can
cause problems with some remote clients. For example, the message
message "Executing /usr/lib/cups/daemon/cups-lpd" is being sent to
remote LPD clients. This is causing the remote clients to abort the
connection because this message violates the LPD protocol as defined
in RFC 1179.

In case of bug report: Steps to reproduce the problem

Install, enable, and start cups-lpd:

# dnf install cups-lpd
# systemctl enable cups-lpd.socket
# systemctl start cups-lpd.socket

Run telnet to connect to the LPD port (515):

# telnet 127.0.0.1 515
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
[email protected]:515-127.0.0.1:59694.service: Executing: /usr/lib/cups/daemon/cups-lpd

The last message "... Executing: /usr/lib/cups/daemon/cups-lpd" should not appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Programming errors, that need preferential fixingpid1

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions