Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-15308

cupsd fails to open cups-files.conf and the resulting error message is lost

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.3.0
    • cups
    • None
    • cups-2.3.3op2-22.el9
    • None
    • None
    • rhel-sst-cs-stacks
    • ssg_core_services
    • 20
    • None
    • False
    • Hide

      None

      Show
      None
    • No
    • None
    • None

      If cupsd fails to open the existing cups-files.conf (where the log location is defined) and journal is not available (f.e. in containers), the error message is lost because cupsd tries to sent it to journal.

      This problem showed up during CUPS container investigation, when cups-files.conf had incorrect permissions in comparison to cupsd, which does not run as root in container.

      How to reproduce:

      1. dnf -y install cups
      2. useradd user
      3. systemctl stop systemd-journald systemd-journald-dev-log.socket systemd-journald.socket
      4. su user -c '/usr/sbin/cupsd -f'

      Results:
      The command returns 1 as error, but with no information in journal or log file.

      Expected result:
      Error message on stderr.

              zdohnal@redhat.com Zdenek Dohnal
              zdohnal@redhat.com Zdenek Dohnal
              Zdenek Dohnal Zdenek Dohnal
              Petr Dancak Petr Dancak
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: