openscap icon indicating copy to clipboard operation
openscap copied to clipboard

API/OVAL/unittests/test_variable_in_filter.sh uses /tmp/key_file

Open comps opened this issue 2 years ago • 0 comments

Description of Problem:

The API/OVAL/unittests/test_variable_in_filter.sh test writes to (and then removes) a /tmp/key_file file, which might conflict with other logic running on the same OS, which is the same OS (chroot) used for building the RPM.

Other files seem to correctly use mktemp.

If the test_variable_in_filter.xml cannot be dynamically sed-modified with the name of a temporary file, consider at least changing the name to something like /tmp/openscap_unittests_test_variable_in_filter.

Thanks!

OpenSCAP Version:

maint-1.3 as of 2023-02-03

comps avatar Feb 03 '23 13:02 comps