Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-41246

/var/lib/foreman/public/assets/apps does not follow foreman ownership

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.18.1
    • Installation
    • 8
    • False
    • sat-rocket
    • None
    • None
    • None
    • Customer Facing, Customer Reported
    • Manual

      Description of problem:

      After installing Satellite 6.18.1 on RHEL 9.7 STIG (Disconnected Environment) Lightspeed pages fail with 403 permission denied error see here;

      # curl https://`hostname -f`/assets/apps/advisor/fed-mods.json
      <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>403 Forbidden</title>
      </head><body>
      <h1>Forbidden</h1>
      <p>You don't have permission to access this resource.</p>
      </body></html>

      (the webui reflects this error on general Lightpseed page loads)

      This traces back to the permissions of the file;

       # ls -laZ /var/lib/foreman/public/assets/apps/advisor/fed-mods.json
       -rw-r--r--. 1 root root system_u:object_r:foreman_lib_t:s0 198 Dec 23 12:47 /var/lib/foreman/public/assets/apps/advisor/fed-mods.json

       

      The above, combined with the default umask applied to STIG systems of 0077. This umask is not normally a problem since typically we set permissions directly and on creation of this dir we don't. 

       

      To reproduce:

      1. Establish RHEL 9 system with most base STIG policies (keeping the 0077 umask in place)
        1. a. if fapolicyd is enabled configure it according to kcs 7001184
      2. install or upgrade to 6.18 with iop enabled
      3. run the curl above

       

      STIG can be enabled in the kickstart, or just after installation. For just after installation (before Satellite is installed):

      dnf install openscap-scanner scap-security-guide oscap xccdf eval --remediate --profile xccdf_org.ssgproject.content_profile_stig /usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml

              Unassigned Unassigned
              rhn-support-rspagnol Ryan Spagnola
              Votes:
              2 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: