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

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

Open
comps opened this issue Feb 3, 2023 · 0 comments
Open

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

comps opened this issue Feb 3, 2023 · 0 comments

Comments

@comps
Copy link

comps commented Feb 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant