mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
Running compliance script generated by Jamf Compliance Editor in terminal and the GUI "Audit Run" results differ. (CISL1) #68
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ktdunn on GitHub.
Summary
If you run the compliance shell script in terminal the results will differ from the results of JCE "Audit Run". The terminal results will fewer tests passed and more failures.
Steps to reproduce
Operating System version
14.6.1 (23G93)
Intel or Apple Silicon
Apple Silicon
What is the current bug behavior?
The results of the sh script is fewer tests passed and more tests failed than the GUI results.
What is the expected correct behavior?
The results should match.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's tough to read otherwise.)
Output of checks
(Paste any output that occurs with the bug)
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)

org.audit.zip
@anthonydarte commented on GitHub:
Hello,
I am experiencing the same issue with CIS Lvl2.
I believe I have found the problem by looking more closely at the script code. The native function correctly takes exemptions into account, whereas the --stats command does not.
vs
By modifying the function, it resolves the problem :