From 54fc40b62537928dfc0c7df6ae20ed031d848b40 Mon Sep 17 00:00:00 2001 From: zgzxx Date: Sun, 7 Apr 2024 15:22:12 +0800 Subject: [PATCH] ima digest list ebs sign ret 2 when errmsg is SIGN_PERMISSION_DENIED (cherry picked from commit c5610355c35c68263c747093996e4c00dfdf10e7) --- Feature-support-EBS-sign-for-IMA-digest-list.patch | 2 +- openEuler-rpm-config.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Feature-support-EBS-sign-for-IMA-digest-list.patch b/Feature-support-EBS-sign-for-IMA-digest-list.patch index 8a54f8c..bd0fed0 100644 --- a/Feature-support-EBS-sign-for-IMA-digest-list.patch +++ b/Feature-support-EBS-sign-for-IMA-digest-list.patch @@ -309,7 +309,7 @@ index 0000000..a7a83e5 + break; + elif [ $ret_sign -eq $FAILED_SIGN_PERMISSION_DENIED ]; then + echo "Failed to sign file, permission denied" -+ SIGN_RESULT=1 ++ SIGN_RESULT=$FAILED_SIGN_PERMISSION_DENIED + break; + elif [ $i -ne $CONFIG_RETEST_COUNT ]; then + echo "Failed to sign file, try again" diff --git a/openEuler-rpm-config.spec b/openEuler-rpm-config.spec index 01ceb49..bd44e06 100644 --- a/openEuler-rpm-config.spec +++ b/openEuler-rpm-config.spec @@ -3,7 +3,7 @@ Name: %{vendor}-rpm-config Version: 30 -Release: 53 +Release: 54 License: GPL+ Summary: specific rpm configuration files URL: https://gitee.com/openeuler/openEuler-rpm-config @@ -149,6 +149,9 @@ sed -i "s/__vendor/%{vendor}/g" `grep "__vendor" -rl %{buildroot}%{_rpmconfigdir %{rpmvdir}/find-requires.ksyms %changelog +* Sun Apr 7 2024 zhangguangzhi - 30-54 +- ima digest list ebs sign ret 2 when errmsg is SIGN_PERMISSION_DENIED + * Fri Mar 29 2024 zhangguangzhi - 30-53 - ima digest list ebs sign use file path and check errmsg -- Gitee