• Roberto Sassu's avatar
    ima: define new template ima-ng and template fields d-ng and n-ng · 4d7aeee7
    Roberto Sassu authored
    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: default avatarRoberto Sassu <roberto.sassu@polito.it>
    Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
    4d7aeee7
ima_template.c 2.89 KB