ima: Set correct casting types
authorRoberto Sassu <roberto.sassu@huawei.com>
Tue, 8 Jun 2021 12:31:21 +0000 (14:31 +0200)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 8 Jun 2021 20:29:10 +0000 (16:29 -0400)
commit24c9ae23bdfa0642228e747849dd052fd4295c6c
tree3e57619f2de9068ac8aeba2ebddad546a20c5e50
parent22a558f567ab40b6ea779d0f535d3e32c35c099a
ima: Set correct casting types

The code expects that the values being parsed from a buffer when the
ima_canonical_fmt global variable is true are in little endian. Thus, this
patch sets the casting types accordingly.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_template.c
security/integrity/ima/ima_template_lib.c