Re: [PATCH 1/2] integrity: Add errno field in audit message

2020-06-11 Thread Lakshmi Ramasubramanian
On 6/10/20 6:45 PM, Paul Moore wrote: Hi Paul, I'm sorry I didn't get a chance to mention this before you posted this patch, but for the past several years we have been sticking with a policy of only adding new fields to the end of existing records; please adjust this patch accordingly.

[PATCH 1/2] integrity: Add errno field in audit message

2020-06-11 Thread Lakshmi Ramasubramanian
Error code is not included in the audit messages logged by the integrity subsystem. Add a new field namely "errno" in the audit message and set the value to the error code passed to integrity_audit_msg() in the "result" parameter. Sample audit message: [6.284329] audit: type=1804

[PATCH 2/2] IMA: Add audit log for failure conditions

2020-06-11 Thread Lakshmi Ramasubramanian
The final log statement in process_buffer_measurement() for failure condition is at debug level. This does not log the message unless the system log level is raised which would significantly increase the messages in the system log. Change this to an audit message to audit integrity failures with