• Roberto Sassu's avatar
    ima: added support for new kernel cmdline parameter ima_template_fmt · c2426d2a
    Roberto Sassu authored
    This patch allows users to provide a custom template format through the
    new kernel command line parameter 'ima_template_fmt'. If the supplied
    format is not valid, IMA uses the default template descriptor.
    
    Changelog:
     - v3:
       - added check for 'fields' and 'num_fields' in
         template_desc_init_fields() (suggested by Mimi Zohar)
    
     - v2:
       - using template_desc_init_fields() to validate a format string
         (Roberto Sassu)
       - updated documentation by stating that only the chosen template
         descriptor is initialized (Roberto Sassu)
    
     - v1:
       - simplified code of ima_template_fmt_setup()
         (Roberto Sassu, suggested by Mimi Zohar)
    Signed-off-by: default avatarRoberto Sassu <roberto.sassu@polito.it>
    Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
    c2426d2a
ima_template.c 5.52 KB