Skip to content

PE Provided install.bash Creates Broken Symlinks #61

@smhanes15

Description

@smhanes15

Describe the Bug

The install.bash script provided with PE (at least version 2021.7.8) creates symlinks in /usr/local/bin to targets that might not actually exist, resulting in broken links. This results in symlink permissions being evaluated instead of target permissions, which in turn triggers a finding in STIG checks such as: find -L /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin -perm /022 -exec ls -l {} ;

Expected Behavior

The function inside the install.bash script that creates symlinks should only create those links if the target exists.

Steps to Reproduce

Steps to reproduce the behavior:

  1. On a non PE server run: curl -k https://pe_master.example.com:8140/packages/current/install.bash | sudo bash
  2. Once complete, run: ls -l /usr/local/bin/ and observe broken symlink

Environment

  • Version 2021.7.8
  • Platform RHEL-8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions