commit | b882fae2d3a832fdcdc194c9f358390b1efca8e7 | [log] [tgz] |
---|---|---|
author | Dmitry Kasatkin <d.kasatkin@samsung.com> | Thu Mar 27 10:54:11 2014 +0200 |
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | Thu Jun 12 17:58:06 2014 -0400 |
tree | 2f9f2a00683176e02fee1acd59db3705a9228f35 | |
parent | 3e38df56e6ef736f3ab516664697b55caa8f3238 [diff] |
ima: prevent unnecessary policy checking ima_rdwr_violation_check is called for every file openning. The function checks the policy even when violation condition is not met. It causes unnecessary policy checking. This patch does policy checking only if violation condition is met. Changelog: - check writecount is greater than zero (Mimi) Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>