Commit d3178c7c authored by Xiaoke Wang's avatar Xiaoke Wang Committed by Laibin Qiu
Browse files

integrity: check the return value of audit_log_start()



stable inclusion
from linux-4.19.230
commit e9fa71bab4de31155eebb3074e29f49d6748fd1a

--------------------------------

commit 83230351 upstream.

audit_log_start() returns audit_buffer pointer on success or NULL on
error, so it is better to check the return value of it.

Fixes: 3323eec9 ("integrity: IMA as an integrity service provider")
Signed-off-by: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: default avatarPaul Moore <paul@paul-moore.com>
Signed-off-by: default avatarMimi Zohar <zohar@linux.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
Signed-off-by: default avatarLaibin Qiu <qiulaibin@huawei.com>
parent 5a1955f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment