Uploaded image for project: 'Red Hat Insights Engineering'
  1. Red Hat Insights Engineering
  2. RHINENG-17562

insights-client leaves an empty tailoring file in /var/tmp/ when performing compliance scans

XMLWordPrintable

    • Moderate
    • 3
    • Insights Security Sprint#3, Insights Security Sprint #4

      ** Note that this is a public ticket, please refrain from adding any sensitive data. **

       

      Steps to reproduce:

      • Connect a system with console.redhat.com ( rhsm + insights )
      • Create a SCAP policy without any tailoring file in it and assign it to the system 
      • Run "insights-client --compliance" on that system
      • Check for empty files inside /var/tmp

      Actual results:

      # find /var/tmp/ -size 0 -type f -name "*.xml" -exec ls -lah {} \;
      rw------. 1 root root 0 Apr 15 21:16 /var/tmp/oscap_tailoring_file-xccdf_org.ssgproject.content_profile_stig.bbxsx0_n.xml

      Expected results:

      If a file is not in use or is not even needed, that should either not be generated or should be cleared up (especially when that is an empty file ) at the end of the execution itself.

       

              rhn-support-submishr Subhashree Mishra
              rhn-support-saydas Sayan Das
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: