Description of problem: I write some check_script for OpenSCAP either in BASH or in Python In the script when I call 'which <binary>' then it failed with /usr/bin/which: no python in ((null)) Version-Release number of selected component (if applicable): openscap-0.9.11 How reproducible: always Steps to Reproduce: 1. write the check script either in BASH or in Python 2. call which command on some binary 3. run oscap xccdf eval <path to xml file> Actual results: /usr/bin/which: no python in ((null)) Expected results: /bin/python Additional info:
Created attachment 819774 [details] Here is the function for test in python script
openscap SCE plugin by design does not pass outside environment variables to checks. However in this case I do agree that not having $PATH in the checks can make them very cumbersome to write, so we now pass a hardcoded reasonable $PATH to all SCE checks, see https://git.fedorahosted.org/cgit/openscap.git/commit/?id=f4c30de885958a656625eca4ed460ee67d95d586 This will be part of openscap 1.0.2
Great work. I will test them when the new release will be out.
openscap-1.0.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/openscap-1.0.2-1.fc20
Package openscap-1.0.2-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing openscap-1.0.2-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-0618/openscap-1.0.2-1.fc20 then log in and leave karma (feedback).
openscap-1.0.3-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/openscap-1.0.3-1.fc20
openscap-1.0.3-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.