android_kernel_asus_sm8350/security/integrity/ima
Roberto Sassu 3ce1217d6c ima: define template fields library and new helpers
This patch defines a library containing two initial template fields,
inode digest (d) and file name (n), the 'ima' template descriptor,
whose format is 'd|n', and two helper functions,
ima_write_template_field_data() and ima_show_template_field_data().

Changelog:
- replace ima_eventname_init() parameter NULL checking with BUG_ON.
  (suggested by Mimi)
- include "new template fields for inode digest (d) and file name (n)"
  definitions to fix a compiler warning.  - Mimi
- unnecessary to prefix static function names with 'ima_'. remove
  prefix to resolve Lindent formatting changes. - Mimi
- abbreviated/removed inline comments - Mimi
- always send the template field length - Mimi

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
2013-10-25 17:17:05 -04:00
..
ima_api.c ima: define new function ima_alloc_init_template() to API 2013-10-25 17:17:04 -04:00
ima_appraise.c ima: use dynamically allocated hash storage 2013-10-25 17:17:00 -04:00
ima_crypto.c ima: ima_calc_boot_agregate must use SHA1 2013-10-25 17:17:02 -04:00
ima_fs.c ima: define template fields library and new helpers 2013-10-25 17:17:05 -04:00
ima_init.c ima: new templates management mechanism 2013-10-25 17:17:04 -04:00
ima_main.c ima: pass the file descriptor to ima_add_violation() 2013-10-25 17:17:02 -04:00
ima_policy.c Revert "ima: policy for RAMFS" 2013-10-25 13:17:19 -04:00
ima_queue.c ima: pass the filename argument up to ima_add_template_entry() 2013-10-25 17:17:03 -04:00
ima_template_lib.c ima: define template fields library and new helpers 2013-10-25 17:17:05 -04:00
ima_template_lib.h ima: define template fields library and new helpers 2013-10-25 17:17:05 -04:00
ima_template.c ima: define template fields library and new helpers 2013-10-25 17:17:05 -04:00
ima.h ima: define template fields library and new helpers 2013-10-25 17:17:05 -04:00
Kconfig ima: provide support for arbitrary hash algorithms 2013-10-25 17:16:58 -04:00
Makefile ima: define template fields library and new helpers 2013-10-25 17:17:05 -04:00