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

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

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-8.10.z
    • rhel-8.10, rhel-8.10.z
    • sudo
    • None
    • sudo-1.9.5p2-1.el8_10.2
    • Yes
    • Low
    • rhel-idm-sssd
    • ssg_security
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • 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-1.el8_9.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:09:28 r810 sudo[6537]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; ENV=HOME=/root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin ; COMMAND=/bin/sleep .1

      Actual results

      Dec 19 17:07:58 r810 sudo[6494]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; ENV=HOME=/root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/binCOMMAND=/bin/sleep .1

      Additional information

      downgrading to package sudo-1.8.29-10.el8.x86_64 does show the expected results which is a "<space><semicolon>" between ENV= and COMMAND= fields.

              rh-ee-allopez Alejandro Lopez
              rhn-support-jgamba Juan Gamba
              Alejandro Lopez Alejandro Lopez
              Jakub Vavra Jakub Vavra
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: