Hi team, I have some questions
1, Are multiple compliance discovery scripts executed each in its own isolated process/subshell, or are they sourced/evaluated within a shared shell context? (We need to know whether exit, readonly, or shared variable names across scripts can interfere with one another.)
2, Where on the device is the discovery script staged and executed from during a compliance check-in? What is the working directory and the exact interpreter/invocation used?
3, Which log contains the actual STDOUT/return value and failure reason for a compliance discovery script (as opposed to a Shell Script deployment)? Is the script's STDOUT/JSON output logged anywhere, or only pass/fail + PolicyID?
4, Do macOS custom compliance discovery scripts run in root/system context or in the signed-in user's context?
Thank you team!