diff options
| author | Dmitry Kasatkin <[email protected]> | 2014-08-22 09:43:55 +0300 |
|---|---|---|
| committer | Mimi Zohar <[email protected]> | 2014-09-09 10:28:47 -0400 |
| commit | f68c05f4d2d4e19c40f4ac1e769cc0a2f9f544a0 (patch) | |
| tree | 07370f5d985fbb1235044660937b27d9b04a4a8c /scripts/gdb/linux/config.py | |
| parent | 65d98f3be25f7ee96af655f97e153d3d8d3d8ef9 (diff) | |
ima: simplify conditional statement to improve performance
Precede bit testing before string comparison makes code
faster. Also refactor statement as a single line pointer
assignment. Logic is following: we set 'xattr_ptr' to read
xattr value when we will do appraisal or in any case when
measurement template is other than 'ima'.
Signed-off-by: Dmitry Kasatkin <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions