]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97d3a70147850396c0657456292221ebae7d1d27
treeef7efc6a5394fdd975ed2ae5552a8ebfcfe93db4
parent3a8f6f40faa7d0862f047b5c504baa7a44ec67c9
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