]> git.baikalelectronics.ru Git - kernel.git/commit
integrity: support new struct public_key_signature encoding field
authorMimi Zohar <zohar@linux.ibm.com>
Fri, 9 Nov 2018 05:53:40 +0000 (00:53 -0500)
committerJames Morris <james.morris@microsoft.com>
Tue, 13 Nov 2018 21:09:56 +0000 (13:09 -0800)
commit149e6aa89e9d7e90995753447d5d0b87395735ea
tree772f7b697fa729f1f186f6e9310def5493c11e83
parent996d957f5298329c7984d90e790cf3b2f783bef0
integrity: support new struct public_key_signature encoding field

On systems with IMA-appraisal enabled with a policy requiring file
signatures, the "good" signature values are stored on the filesystem as
extended attributes (security.ima).  Signature verification failure
would normally be limited to just a particular file (eg. executable),
but during boot signature verification failure could result in a system
hang.

Defining and requiring a new public_key_signature field requires all
callers of asymmetric signature verification to be updated to reflect
the change.  This patch updates the integrity asymmetric_verify()
caller.

Fixes: e1b76caa1c3a ("KEYS: Provide software public key query function [ver #2]")
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Cc: David Howells <dhowells@redhat.com>
Acked-by: Denis Kenzior <denkenz@gmail.com>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/integrity/digsig_asymmetric.c