summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorFrederick Lawler <fred@cloudflare.com>2026-09-24 15:34:58 -0500
committerMimi Zohar <zohar@linux.ibm.com>2026-09-28 07:52:00 -0400
commitca1e0f3cce8a40f97ab3364030a22fbd9e663d33 (patch)
treebd19d34ab24042a9944579872764e7757dae9dca /tools/perf/scripts/python
parentdf2908090cda368b01ff43709f51890076c56157 (diff)
integrity: Report error code in integrity_audit_msg() call sites
integrity_audit_msg() hides error codes by wrapping integrity_audit_message() which obfuscates the underlying reason for the failure. Update integrity_audit_msg() to take a errno argument, and pass that through to integrity_audit_message(). Then update call sites to take caller's respective error codes. ima_appraise_measurement() stores xattr_len as the return code, but can replace it with a error code later. Therefore conditionally use a code if rc < 0, otherwise report zero. Lastly, conditionally use -EINVAL for ima_release_policy(). Signed-off-by: Frederick Lawler <fred@cloudflare.com> Reviewed-by: Enrico Bravi <enrico.bravi@polito.it> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions