ima: Use kmemdup rather than kmalloc+memcpy
authorAlex Dewar <alex.dewar90@gmail.com>
Wed, 9 Sep 2020 19:09:06 +0000 (20:09 +0100)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 15 Sep 2020 13:57:48 +0000 (09:57 -0400)
commitf60c826d031817772b634c0cda37794ce6d7946a
treee26c876c637443ae896c42f7a915db5eb6b7f512
parent8c2f516c99f0b7e59c53158f4d7a7fe229c5aea8
ima: Use kmemdup rather than kmalloc+memcpy

Issue identified with Coccinelle.

Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_policy.c