All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 ima-evm-utils 0/3] fs-verity file signature support
@ 2022-06-17 19:21 Mimi Zohar
  2022-06-17 19:21 ` [PATCH v4 ima-evm-utils 1/3] Reset 'errno' after failure to open or access a file Mimi Zohar
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mimi Zohar @ 2022-06-17 19:21 UTC (permalink / raw)
  To: linux-integrity; +Cc: Mimi Zohar, Eric Biggers, Stefan Berger

Extend the existing file list digest signing and the IMA measurement
list file signature verification to support the new sigv3 format
version.  Neither file digest signing nor signature verification
require calculating the fs-verity file digest.

evmctl examples of signing fs-verity file hashes and verifying the
fs-verity file signatures are included the respective patch
description.

Changelog v4:
- Addressed Stefan's comments (e.g. fixed max digest size, removed
  unnecessary errno clearing, updated evmctl sign_hash usage format).

Changelog v3:

- Refactor the existing file hash signing function so that both
signature format version 2 and 3 may use it.  Signature v2 directly
signs the file hash, while signature v3 indirectly signs the file hash.

- Addressed Stefan Berger's comments: properly clear errno, properly
limit the hash algorithm name size to address an out of bounds error.
Instead of allowing the maximum hash algorithm name size, use the
current fs-verity supported maximum hash algorithm size.

- Based on Eric Bigger's recommendation of using "fsverity digest"
instead of "fsverity measure", replaced all references.

Mimi Zohar (3):
  Reset 'errno' after failure to open or access a file
  Sign an fs-verity file digest
  Verify an fs-verity file digest based signature

 README          |   3 +-
 src/evmctl.c    | 126 ++++++++++++++++++++++++++++++------
 src/imaevm.h    |   5 +-
 src/libimaevm.c | 166 ++++++++++++++++++++++++++++++++++++++++++++----
 4 files changed, 268 insertions(+), 32 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-29 22:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17 19:21 [PATCH v4 ima-evm-utils 0/3] fs-verity file signature support Mimi Zohar
2022-06-17 19:21 ` [PATCH v4 ima-evm-utils 1/3] Reset 'errno' after failure to open or access a file Mimi Zohar
2022-06-17 19:21 ` [PATCH v4 ima-evm-utils 2/3] Sign an fs-verity file digest Mimi Zohar
2022-06-20  0:34   ` Stefan Berger
2022-08-29 22:52     ` Mimi Zohar
2022-06-17 19:21 ` [PATCH v4 ima-evm-utils 3/3] Verify an fs-verity file digest based signature Mimi Zohar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.