ima: use match_string() helper
authorYisheng Xie <xieyisheng1@huawei.com>
Mon, 21 May 2018 11:58:02 +0000 (19:58 +0800)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 31 May 2018 14:11:58 +0000 (10:11 -0400)
commitb4df86085af9d3f456bed8245cede7c4413dcf83
treebf74ddc01902c32c84677d5b4321b5561f58746d
parent6f0911a666d1f99ff72e7848ddee36af7bbce050
ima: use match_string() helper

match_string() returns the index of an array for a matching string,
which can be used intead of open coded variant.

Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_main.c