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

sudo missing spacing and separator in log when using "--preserve-env=list"

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.7
    • rhel-9.5
    • sudo
    • None
    • sudo-1.9.5p2-12.el9
    • Yes
    • Low
    • ZStream
    • rhel-idm-sssd
    • ssg_security
    • 17
    • 5
    • QE ack, Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Regression Exception
    • None

      What were you trying to do that didn't work?

      Processing /var/log/secure sudo logs. 

      What is the impact of this issue to you?

      This change/regression breaks log processing.

      Please provide the package NVR for which the bug is seen:

      sudo-1.9.5p2-10.el9_3.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. # sudo --preserve-env=HOME,PATH sleep .1
      2. # journalctl -f
      3. CTRL-C

      Expected results

      Dec 19 17:16:43 r95 sudo[32308]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; ENV=HOME=/root PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin ; COMMAND=/bin/sleep .1

      Actual results

      Dec 19 17:15:34 r95 sudo[32069]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; ENV=HOME=/root PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/binCOMMAND=/bin/sleep .1

      Additional information

      downgrading to package sudo-1.9.5p2-9.el9.x86_64 does show the expected results which is a "<space><semicolon>" between ENV= and COMMAND= fields.

              rsroka@redhat.com Radovan Sroka (Inactive)
              rhn-support-jgamba Juan Gamba
              Natália Bubáková Natália Bubáková
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: