summaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima.h
diff options
context:
space:
mode:
authorDmitry Kasatkin <d.kasatkin@samsung.com>2014-08-22 08:43:55 +0200
committerMimi Zohar <zohar@linux.vnet.ibm.com>2014-09-09 16:28:47 +0200
commitf68c05f4d2d4e19c40f4ac1e769cc0a2f9f544a0 (patch)
tree07370f5d985fbb1235044660937b27d9b04a4a8c /security/integrity/ima/ima.h
parentintegrity: remove declaration of non-existing functions (diff)
downloadlinux-f68c05f4d2d4e19c40f4ac1e769cc0a2f9f544a0.tar.xz
linux-f68c05f4d2d4e19c40f4ac1e769cc0a2f9f544a0.zip
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 <d.kasatkin@samsung.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/ima/ima.h')
0 files changed, 0 insertions, 0 deletions