!43 [sync] PR-41: 修复由于syscare命令行终端输出的状态由“ACCEPT”变为“ACCEPTED”导致的cve回滚失败
From: @openeuler-sync-bot Reviewed-by: @Lostwayzxc Signed-off-by: @Lostwayzxc
This commit is contained in:
commit
d771039b3d
26
0004-update-hotpatch-info-query-func.patch
Normal file
26
0004-update-hotpatch-info-query-func.patch
Normal file
@ -0,0 +1,26 @@
|
||||
From f198f261309b3f0b01ee1462c896b8d931346bbb Mon Sep 17 00:00:00 2001
|
||||
From: gongzt <gong_zhengtang@163.com>
|
||||
Date: Tue, 20 Jun 2023 15:07:59 +0800
|
||||
Subject: [PATCH] update hostpatch info query func
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
---
|
||||
ceres/manages/vulnerability_manage.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ceres/manages/vulnerability_manage.py b/ceres/manages/vulnerability_manage.py
|
||||
index c153190..8547abe 100644
|
||||
--- a/ceres/manages/vulnerability_manage.py
|
||||
+++ b/ceres/manages/vulnerability_manage.py
|
||||
@@ -406,7 +406,7 @@ class VulnerabilityManage:
|
||||
if not hotpatch_info.startswith("CVE"):
|
||||
continue
|
||||
cve_id, base_pkg, status = [info.strip() for info in hotpatch_info.split()]
|
||||
- if status != "ACTIVED" and status != "ACCEPT":
|
||||
+ if status != "ACTIVED" and status != "ACCEPTED":
|
||||
continue
|
||||
hotpatch_list[base_pkg].append(cve_id)
|
||||
|
||||
--
|
||||
@ -1,6 +1,6 @@
|
||||
Name: aops-ceres
|
||||
Version: v1.2.1
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: An agent which needs to be adopted in client, it managers some plugins, such as gala-gopher(kpi collection), fluentd(log collection) and so on.
|
||||
License: MulanPSL2
|
||||
URL: https://gitee.com/openeuler/%{name}
|
||||
@ -8,6 +8,7 @@ Source0: %{name}-%{version}.tar.gz
|
||||
Patch0001: 0001-modify-return-value-when-no-hotpatch-is-matched.patch
|
||||
Patch0002: 0002-update-cve-fix-and-cve-scan.patch
|
||||
Patch0003: 0003-fix-issue-cve-fix-result-doesn-t-match-log.patch
|
||||
Patch0004: 0004-update-hotpatch-info-query-func.patch
|
||||
|
||||
|
||||
BuildRequires: python3-setuptools
|
||||
@ -43,6 +44,9 @@ An agent which needs to be adopted in client, it managers some plugins, such as
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jun 21 2023 wenxin<shusheng.wen@outlook.com> - v1.2.1-5
|
||||
- update hostpatch info query func
|
||||
|
||||
* Fri Jun 09 2023 wenxin<shusheng.wen@outlook.com> - v1.2.1-4
|
||||
- fix issue: cve fix result doesn't match log
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user