]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:57:24 +0000 (19:57 -0600)
commit2727e82ec1999c60ea952506ae3dcb3f86f75097
treec6ce554b81d0f735883763647afb45e0ca746acc
parent8b55ae7166543534bdf0cdb4413fb3da00de2db1
ima: fix showing large 'violations' or 'runtime_measurements_count'

BugLink: https://bugs.launchpad.net/bugs/1836802
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>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
security/integrity/ima/ima_fs.c