-
Bug
-
Resolution: Done
-
Normal
-
None
-
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.