OSDN Git Service

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:16:57 +0000 (11:16 -0800)
commit53de32d0417ce8eee809283e9f8e9f2c5fc1ce60
tree6d04d12667e837738d1da6fc2e548cd55431037b
parent491cd0629de3665bb5911fafd9c17dfe5fa04cf4
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