]> 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)
commitaaf314d3e5337dfc3cbbf9b653d66c69f6970f7e
treeef7efc6a5394fdd975ed2ae5552a8ebfcfe93db4
parent806ccf475dac3ef7befbc26fe6007c4005420044
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