commit | f5e51fa368fd6612608bc36f39e55cde08ce0039 | [log] [tgz] |
---|---|---|
author | Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> | Thu Mar 15 17:33:42 2018 -0300 |
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | Sun Mar 25 07:26:30 2018 -0400 |
tree | 756645114becbeb4be95807b492d5c9ce35a82c8 | |
parent | 1775cb87b063cd60a5021c38412f6024f93cc376 [diff] |
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>