From 739ad2e09a20533577abf5c01945ae96d7500bca Mon Sep 17 00:00:00 2001 From: Liu Zixian Date: Wed, 24 Aug 2022 11:28:23 +0800 Subject: [PATCH] add sm3 option --- add-sm3-option.patch | 26 ++++++++++++++++++++++++++ ima-evm-utils.spec | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 add-sm3-option.patch diff --git a/add-sm3-option.patch b/add-sm3-option.patch new file mode 100644 index 0000000..3f3423a --- /dev/null +++ b/add-sm3-option.patch @@ -0,0 +1,26 @@ +From 3fe53a713f32c28841e7f5efd4afb397b6d7e154 Mon Sep 17 00:00:00 2001 +From: shenxiangwei +Date: Wed, 24 Aug 2022 08:26:49 +0800 +Subject: [PATCH] add sm3 option + +Signed-off-by: shenxiangwei +--- + src/evmctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/evmctl.c b/src/evmctl.c +index 28f4b8d..bce4b91 100644 +--- a/src/evmctl.c ++++ b/src/evmctl.c +@@ -2489,7 +2489,7 @@ static void usage(void) + + printf( + "\n" +- " -a, --hashalgo sha1 (default), sha224, sha256, sha384, sha512, streebog256, streebog512\n" ++ " -a, --hashalgo sha1 (default), sha224, sha256, sha384, sha512, streebog256, streebog512, sm3\n" + " -s, --imasig make IMA signature\n" + " -d, --imahash make IMA hash\n" + " -f, --sigfile store IMA signature in .sig file instead of xattr\n" +-- +2.27.0 + diff --git a/ima-evm-utils.spec b/ima-evm-utils.spec index 6398381..049fc98 100644 --- a/ima-evm-utils.spec +++ b/ima-evm-utils.spec @@ -1,6 +1,6 @@ Name: ima-evm-utils Version: 1.3.2 -Release: 4 +Release: 5 Summary: IMA/EVM control utilities License: GPLv2 URL: http://linux-ima.sourceforge.net/ @@ -8,6 +8,7 @@ Source0: http://sourceforge.net/projects/linux-ima/files/ima-evm-utils/%{na Patch9000: add-save-command-to-support-digest-list-building.patch Patch9001: fix-caps-parameter-cannot-be-parsed.patch +Patch9002: add-sm3-option.patch BuildRequires: autoconf automake libtool asciidoc vim-common BuildRequires: libxslt openssl openssl-devel keyutils-libs-devel tpm2-tss-devel @@ -73,6 +74,9 @@ make check %doc %{_mandir}/*/* %changelog +* Wed Aug 24 2022 shenxiangwei - 1.3.2-5 +- Add sm3 option + * Fri Aug 19 2022 shenxiangwei - 1.3.2-4 - Fix caps parameter cannot be parsed -- Gitee