ima: Define new template fields xattrnames, xattrlengths and xattrvalues
authorRoberto Sassu <roberto.sassu@huawei.com>
Tue, 1 Jun 2021 08:23:38 +0000 (10:23 +0200)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 2 Jun 2021 22:56:13 +0000 (18:56 -0400)
commit8314b6732ae4e600bb933e108f96ce0176acb09c
tree9fd2990b529a468a574454461ee8a92f763e23ff
parent8c7a703ec9787a1b45b024e9acd253328422dcbd
ima: Define new template fields xattrnames, xattrlengths and xattrvalues

This patch defines the new template fields xattrnames, xattrlengths and
xattrvalues, which contain respectively a list of xattr names (strings,
separated by |), lengths (u32, hex) and values (hex). If an xattr is not
present, the name and length are not displayed in the measurement list.

Reported-by: kernel test robot <lkp@intel.com> (Missing prototype def)
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Documentation/security/IMA-templates.rst
include/linux/evm.h
security/integrity/evm/evm_main.c
security/integrity/ima/ima_template.c
security/integrity/ima/ima_template_lib.c
security/integrity/ima/ima_template_lib.h