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

which2.sh incorrectly assumes read permissions for /proc/$$/exe

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

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • rhel-10.0.z
    • rhel-8.10, rhel-9.6.z, rhel-10.0
    • which
    • None
    • which-2.21-44.el10_0
    • No
    • Low
    • rhel-base-utils-antfarm
    • ssg_core_services
    • 1
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • Release Note Not Required
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      /etc/profile.d/which2.sh incorrectly assumes that it has read access to 
      /proc/$$/exe, which is not always going to be true. When it's not true, it
      throws an error.

      The which2.sh script seems to exists independently of an upstream file in 
      the GNU which distribution, and is thus inherently ours. Hence there is no
      upstream above CentOS Stream. Merge requests incoming.

              than@redhat.com Than Ngo
              rhn-support-mbliss Mason Loring Bliss
              Than Ngo Than Ngo
              Jakub Heger Jakub Heger
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: