diff options
author | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2015-06-11 17:54:42 +0200 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2015-06-16 14:18:21 +0200 |
commit | 45b26133b97871896b8c5241d59f4ff7839db7b2 (patch) | |
tree | 7a9da6f15ae727eb9f2e9d1a9b74b129a18dd49d /security/integrity/ima/ima_fs.c | |
parent | Merge branch 'smack-for-4.2-stacked' of https://github.com/cschaufler/smack-n... (diff) | |
download | linux-45b26133b97871896b8c5241d59f4ff7839db7b2.tar.xz linux-45b26133b97871896b8c5241d59f4ff7839db7b2.zip |
ima: fix ima_show_template_data_ascii()
This patch fixes a bug introduced in "4d7aeee ima: define new template
ima-ng and template fields d-ng and n-ng".
Changelog:
- change int to uint32 (Roberto Sassu's suggestion)
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Roberto Sassu <rsassu@suse.de>
Cc: stable@vger.kernel.org # 3.13
Diffstat (limited to 'security/integrity/ima/ima_fs.c')
-rw-r--r-- | security/integrity/ima/ima_fs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/ima/ima_fs.c b/security/integrity/ima/ima_fs.c index 461215e5fd31..816d175da79a 100644 --- a/security/integrity/ima/ima_fs.c +++ b/security/integrity/ima/ima_fs.c @@ -190,9 +190,9 @@ static const struct file_operations ima_measurements_ops = { .release = seq_release, }; -void ima_print_digest(struct seq_file *m, u8 *digest, int size) +void ima_print_digest(struct seq_file *m, u8 *digest, u32 size) { - int i; + u32 i; for (i = 0; i < size; i++) seq_printf(m, "%02x", *(digest + i)); |