aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_template_lib.c
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2015-06-11 11:54:42 -0400
committerMimi Zohar <zohar@linux.vnet.ibm.com>2015-06-16 08:18:21 -0400
commit45b26133b97871896b8c5241d59f4ff7839db7b2 (patch)
tree7a9da6f15ae727eb9f2e9d1a9b74b129a18dd49d /security/integrity/ima/ima_template_lib.c
parentMerge branch 'smack-for-4.2-stacked' of https://github.com/cschaufler/smack-next into next (diff)
downloadlinux-dev-45b26133b97871896b8c5241d59f4ff7839db7b2.tar.xz
linux-dev-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_template_lib.c')
-rw-r--r--security/integrity/ima/ima_template_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_template_lib.c b/security/integrity/ima/ima_template_lib.c
index de0ce4fbdf69..2934e3d377f1 100644
--- a/security/integrity/ima/ima_template_lib.c
+++ b/security/integrity/ima/ima_template_lib.c
@@ -70,7 +70,8 @@ static void ima_show_template_data_ascii(struct seq_file *m,
enum data_formats datafmt,
struct ima_field_data *field_data)
{
- u8 *buf_ptr = field_data->data, buflen = field_data->len;
+ u8 *buf_ptr = field_data->data;
+ u32 buflen = field_data->len;
switch (datafmt) {
case DATA_FMT_DIGEST_WITH_ALGO: