ima: Remove redundant policy rule set in add_rules()
authorKrzysztof Struczynski <krzysztof.struczynski@huawei.com>
Mon, 27 Apr 2020 10:28:58 +0000 (12:28 +0200)
committerMimi Zohar <zohar@linux.ibm.com>
Fri, 8 May 2020 02:54:08 +0000 (22:54 -0400)
commit6ee28442a465ab4c4be45e3b15015af24b1ba906
treeef7efc6a5394fdd975ed2ae5552a8ebfcfe93db4
parent1129d31b55d509f15e72dc68e4b5c3a4d7b4da8d
ima: Remove redundant policy rule set in add_rules()

Function ima_appraise_flag() returns the flag to be set in
temp_ima_appraise depending on the hook identifier passed as an argument.
It is not necessary to set the flag again for the POLICY_CHECK hook.

Signed-off-by: Krzysztof Struczynski <krzysztof.struczynski@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_policy.c