Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PE Provided install.bash Creates Broken Symlinks #61

Open
smhanes15 opened this issue Oct 31, 2024 · 0 comments
Open

PE Provided install.bash Creates Broken Symlinks #61

smhanes15 opened this issue Oct 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@smhanes15
Copy link

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
@smhanes15 smhanes15 added the bug Something isn't working label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant