]> git.baikalelectronics.ru Git - kernel.git/commit
ima: pass iint to ima_add_violation()
authorRoberto Sassu <rsassu@suse.de>
Sat, 11 Apr 2015 15:12:39 +0000 (17:12 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 21 May 2015 17:59:29 +0000 (13:59 -0400)
commitb3d9cc4ae888ab613f514cff94e109052ba7cb82
tree88774fba38e58df1530470b3a5072e5b729f2ec6
parentb8032657c1a05d6cfb74572af942015205841920
ima: pass iint to ima_add_violation()

This patch adds the iint associated to the current inode as a new
parameter of ima_add_violation(). The passed iint is always not NULL
if a violation is detected. This modification will be used to determine
the inode for which there is a violation.

Since the 'd' and 'd-ng' template field init() functions were detecting
a violation from the value of the iint pointer, they now check the new
field 'violation', added to the 'ima_event_data' structure.

Changelog:
 - v1:
   - modified an old comment (Roberto Sassu)

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_main.c
security/integrity/ima/ima_template_lib.c