]> git.baikalelectronics.ru Git - kernel.git/commit
ima: Improvements in ima_appraise_measurement()
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Thu, 15 Mar 2018 20:33:42 +0000 (17:33 -0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Sun, 25 Mar 2018 11:26:30 +0000 (07:26 -0400)
commit91c506f97b376f703f466fc9dad7dfc080ceff27
tree756645114becbeb4be95807b492d5c9ce35a82c8
parenta7a93c7777522f7d6bd5fd54d0af69d52199bc8a
ima: Improvements in ima_appraise_measurement()

Replace nested ifs in the EVM xattr verification logic with a switch
statement, making the code easier to understand.

Also, add comments to the if statements in the out section and constify the
cause variable.

Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Acked-by: Serge Hallyn <serge@hallyn.com>
security/integrity/ima/ima_appraise.c