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

Segmentation fault when running Puppet Installation Manager (PIM) wizard on RHEL9 with SELinux Enforced #29

Open
jortencio opened this issue Apr 17, 2024 · 1 comment
Labels
bug Something isn't working triaged This ticket has been accepted to our backlog and migrated internally

Comments

@jortencio
Copy link

Describe the Bug

When running PIM on RHEL 9 with SELinux Enforced, a segmentation fault is encountered:
image

Expected Behavior

Expect to start up the PIM Wizard

Steps to Reproduce

  1. Download PIM for Linux from https://www.puppet.com/downloads/puppet-installation-manager-beta on RHEL9 host with SELinux enforced (default)
    curl -JLO https://downloads.puppetlabs.com/pim/puppet-installation-manager-v1.1.1-linux.zip
  2. Unzip the zip file
    unzip puppet-installation-manager-v1.1.1-linux.zip
  3. Run the PIM Wizard
    ./pim wizard

Environment

  • PIM Version: 1.1.1
  • Platform: Red Hat Enterprise Linux 9

Additional Context

I had some suspicions that it might be related to SELinux so I checked the audit log (/var/log/audit/audit.log) and found the following:

type=AVC msg=audit(1713315574.982:351): avc:  denied  { execmod } for  pid=13856 comm="pim" path="/root/pim_project/pim" dev="xvda4" ino=92285117 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=0

As a workaround to allow PIM to run, I've followed the suggestion from sealert:

# ausearch -c 'pim' --raw | audit2allow -M my-pim
# semodule -i my-pim.pp
@jortencio jortencio added the bug Something isn't working label Apr 17, 2024
@Jo-Lillie Jo-Lillie added the triaged This ticket has been accepted to our backlog and migrated internally label Apr 17, 2024
Copy link

Migrated issue to PE-38150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged This ticket has been accepted to our backlog and migrated internally
Projects
None yet
Development

No branches or pull requests

2 participants