[PATCH v4] integrity: check the return value of audit_log_start()

Mimi Zohar zohar at linux.ibm.com
Thu Jan 27 02:19:08 UTC 2022


Hi Xiaoke,

On Thu, 2022-01-27 at 09:59 +0800, Xiaoke Wang wrote:
> From: Xiaoke Wang <xkernel.wang at foxmail.com>
> 
> audit_log_start() returns audit_buffer pointer on success or NULL on
> error, so it is better to check the return value of it.
> 
> Signed-off-by: Xiaoke Wang <xkernel.wang at foxmail.com>
> Reviewed-by: Paul Moore <paul at paul-moore.com>

Thanks, this patch is staged in the next-integrity-testing branch 
https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git/

Mimi



More information about the Linux-security-module-archive mailing list