ima: use memdup_user_nul
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:40:18 +0000 (23:40 +0800)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 21 Jun 2017 18:37:12 +0000 (14:37 -0400)
commitb4e280304ddb2fb5b6970524e901fc8ae8ec6337
tree14f5444897b285b272ce18e8573f5f908e6b6683
parent5d659f286d58d76064168c4cd7aad61a30d20c44
ima: use memdup_user_nul

Use memdup_user_nul() helper instead of open-coding to simplify the
code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_fs.c