From 64b1171cc7903e2242229dab90e7861b545542ce Mon Sep 17 00:00:00 2001 From: shixuantong Date: Fri, 28 Nov 2025 16:55:20 +0800 Subject: [PATCH] fix syntar in sentryctl --- fix-syntar-in-sentryctl.patch | 25 +++++++++++++++++++++++++ sysSentry.spec | 9 ++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 fix-syntar-in-sentryctl.patch diff --git a/fix-syntar-in-sentryctl.patch b/fix-syntar-in-sentryctl.patch new file mode 100644 index 0000000..c224e5f --- /dev/null +++ b/fix-syntar-in-sentryctl.patch @@ -0,0 +1,25 @@ +From c9bb379c9959ae9db3799ebf7a8283f5b1e79753 Mon Sep 17 00:00:00 2001 +From: shixuantong +Date: Fri, 28 Nov 2025 16:53:24 +0800 +Subject: [PATCH] fix syntar in sentryctl + +--- + src/services/syssentry/sentryctl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/services/syssentry/sentryctl b/src/services/syssentry/sentryctl +index 1e00252..43832f8 100644 +--- a/src/services/syssentry/sentryctl ++++ b/src/services/syssentry/sentryctl +@@ -244,7 +244,7 @@ if __name__ == '__main__': + {"name": "server_cna", "type": str, "choices": None, "required" : True, "help": "server cna array"}, + ], + "sentry_reporter" : [ +- {"name" : "ub_mem_fault_with_kill", "type" : "str", "choices": ["on", "off"], "required" : False, "help" : "Enable/Disable sending SIGBUS signal with UB mem event"}, ++ {"name" : "ub_mem_fault_with_kill", "type" : str, "choices": ["on", "off"], "required" : False, "help" : "Enable/Disable sending SIGBUS signal with UB mem event"}, + {"name" : "ub_mem_fault", "type" : str, "choices": ["on", "off"], "required" : False, "help": "Enable/Disable UB mem event"}, + {"name" : "power_off", "type": str, "choices": ["on", "off"], "required" : False, "help": "Enable/Disable power off event"}, + {"name" : "oom", "type" : str, "choices": ["on", "off"], "required" : False, "help": "Enable/Disable oom event"}, +-- +2.27.0 + diff --git a/sysSentry.spec b/sysSentry.spec index 310691c..95d6216 100644 --- a/sysSentry.spec +++ b/sysSentry.spec @@ -4,7 +4,7 @@ Summary: System Inspection Framework Name: sysSentry Version: 1.0.3 -Release: 15 +Release: 16 License: Mulan PSL v2 Group: System Environment/Daemons Source0: https://gitee.com/openeuler/sysSentry/releases/download/v%{version}/%{name}-%{version}.tar.gz @@ -57,6 +57,7 @@ Patch45: fix-Out-of-memory-bounds-access-in-ebpf_collector.patch Patch46: report-power-off-result-to-BMC.patch Patch47: add-API-to-enable-disable-the-hijacking-function-for.patch Patch48: build-sentry_msg_monitor-only-under-aarch64-architec.patch +Patch49: fix-syntar-in-sentryctl.patch BuildRequires: cmake gcc-c++ BuildRequires: python3 python3-setuptools @@ -314,6 +315,12 @@ rm -rf /var/run/sysSentry | : %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysSentry/tasks/soc_ring_sentry.mod %changelog +* Fri Nov 28 2025 shixuantong - 1.0.3-16 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:fix syntar in sentryctl + * Thu Nov 27 2025 shixuantong - 1.0.3-15 - Type:feature - CVE:NA -- Gitee