ima: define new template ima-ng and template fields d-ng and n-ng
This patch adds support for the new template 'ima-ng', whose format is defined as 'd-ng|n-ng'. These new field definitions remove the size limitations of the original 'ima' template. Further, the 'd-ng' field prefixes the inode digest with the hash algorithim, when displaying the new larger digest sizes. Change log: - scripts/Lindent fixes - Mimi - "always true comparison" - reported by Fengguang Wu, resolved Dmitry - initialize hash_algo variable to HASH_ALGO__LAST - always prefix digest with hash algorithm - Mimi Signed-off-by:Roberto Sassu <roberto.sassu@polito.it> Signed-off-by:
Mimi Zohar <zohar@linux.vnet.ibm.com>
Showing
- security/integrity/ima/ima_template.c 6 additions, 1 deletionsecurity/integrity/ima/ima_template.c
- security/integrity/ima/ima_template_lib.c 136 additions, 16 deletionssecurity/integrity/ima/ima_template_lib.c
- security/integrity/ima/ima_template_lib.h 8 additions, 0 deletionssecurity/integrity/ima/ima_template_lib.h
Loading
Please register or sign in to comment