ima: wrap event related data to the new ima_event_data structure
authorRoberto Sassu <rsassu@suse.de>
Sat, 11 Apr 2015 15:09:50 +0000 (17:09 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 21 May 2015 17:59:28 +0000 (13:59 -0400)
commit23b5741932ca44856762fa24cc7e01307ab8af1f
tree0885bc7def9719d65c843b4b498deccd6c56dc2c
parent9d03a721a3a4a5120de790a0e67dc324c2ed9184
ima: wrap event related data to the new ima_event_data structure

All event related data has been wrapped into the new 'ima_event_data'
structure. The main benefit of this patch is that a new information
can be made available to template fields initialization functions
by simply adding a new field to the new structure instead of modifying
the definition of those functions.

Changelog:
 - v2:
   - f_dentry replaced with f_path.dentry (Roberto Sassu)
   - removed declaration of temporary variables in template field functions
     when possible (suggested by Dmitry Kasatkin)

Signed-off-by: Roberto Sassu <rsassu@suse.de>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima.h
security/integrity/ima/ima_api.c
security/integrity/ima/ima_init.c
security/integrity/ima/ima_template_lib.c
security/integrity/ima/ima_template_lib.h