Linux-Integrity Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] evmctl: support verification of portable EVM signatures
@ 2020-03-26 16:27 dbaryshkov
  0 siblings, 0 replies; only message in thread
From: dbaryshkov @ 2020-03-26 16:27 UTC (permalink / raw)
  To: linux-integrity; +Cc: Dmitry Baryshkov

From: Dmitry Baryshkov <dbaryshkov@gmail.com>

EVM signature code checked explicitly checked for signature type to be
EVM_IMA_XATTR_DIGSIG (0x03). Allow it to be either EVM_IMA_XATTR_DIGSIG
or EVM_XATTR_PORTABLE_DIGSIG.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
---
 src/evmctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/evmctl.c b/src/evmctl.c
index b02be8b1507a..b3f6f65523ef 100644
--- a/src/evmctl.c
+++ b/src/evmctl.c
@@ -824,7 +824,7 @@ static int verify_evm(const char *file)
 		return len;
 	}
 
-	if (sig[0] != 0x03) {
+	if (sig[0] != EVM_IMA_XATTR_DIGSIG || sig[0] != EVM_XATTR_PORTABLE_DIGSIG) {
 		log_err("%s has no signature\n", xattr_evm);
 		return -1;
 	}
-- 
2.25.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26 16:27 [PATCH] evmctl: support verification of portable EVM signatures dbaryshkov

Linux-Integrity Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-integrity/0 linux-integrity/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-integrity linux-integrity/ https://lore.kernel.org/linux-integrity \
		linux-integrity@vger.kernel.org
	public-inbox-index linux-integrity

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-integrity


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git