ima: fix showing large 'violations' or 'runtime_measurements_count'
authorEric Biggers <ebiggers@google.com>
Fri, 7 Sep 2018 21:33:24 +0000 (14:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:15:08 +0000 (11:15 -0800)
commit4c6fda12ff1d187590083a5615cee5501c60142c
treee35e56aa9adfa56c90bdc8101f82c2c293eae07b
parent0c5e357fa89d64f414014046ec14979f72de0261
ima: fix showing large 'violations' or 'runtime_measurements_count'

commit 1e4c8dafbb6bf72fb5eca035b861e39c5896c2b7 upstream.

The 12 character temporary buffer is not necessarily long enough to hold
a 'long' value.  Increase it.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
security/integrity/ima/ima_fs.c