From a56be783c2e32836c088a4d777069f6ed5900608 Mon Sep 17 00:00:00 2001 From: shixuantong Date: Fri, 30 May 2025 17:26:37 +0800 Subject: [PATCH] optimize sysSentry dependencies --- sysSentry.spec | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sysSentry.spec b/sysSentry.spec index 9affeaf..e1eba23 100644 --- a/sysSentry.spec +++ b/sysSentry.spec @@ -4,7 +4,7 @@ Summary: System Inspection Framework Name: sysSentry Version: 1.0.2 -Release: 77 +Release: 78 License: Mulan PSL v2 Group: System Environment/Daemons Source0: https://gitee.com/openeuler/sysSentry/releases/download/v%{version}/%{name}-%{version}.tar.gz @@ -102,7 +102,6 @@ BuildRequires: elfutils-devel clang libbpf-devel llvm kernel-source kernel-devel # for test BuildRequires: python3-numpy python3-pytest -Requires: libbpf Requires: pyxalarm = %{version} %description @@ -161,6 +160,7 @@ This package provides Supports xalarm report for plugins %package -n pysentry_collect Summary: Supports collect in python immplementation Requires: sysSentry = %{version}-%{release} +Requires: libbpf %description -n pysentry_collect This package provides Supports collect for plugins @@ -277,8 +277,6 @@ rm -rf %{buildroot} %attr(0750,root,root) %config(noreplace) %{_sysconfdir}/sysSentry/plugins %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sysSentry/inspect.conf %attr(0600,root,root) %{_unitdir}/sysSentry.service -%attr(0755,root,root) %{_bindir}/ebpf_collector -%attr(0700,root,root) /usr/lib/ebpf_collector.bpf.o # xalarm %attr(0550,root,root) %{_bindir}/xalarmd @@ -314,6 +312,8 @@ rm -rf %{buildroot} # pysentry_collect %exclude %{python3_sitelib}/sentryCollector/collect_plugin.py %exclude %{python3_sitelib}/sentryCollector/__pycache__/collect_plugin* +%exclude %{_bindir}/ebpf_collector +%exclude /usr/lib/ebpf_collector.bpf.o %files -n libxalarm %attr(0550,root,root) %{_libdir}/libxalarm.so @@ -346,8 +346,16 @@ rm -rf %{buildroot} %files -n pysentry_collect %attr(0550,root,root) %{python3_sitelib}/sentryCollector/collect_plugin.py %attr(0550,root,root) %{python3_sitelib}/sentryCollector/__pycache__/collect_plugin* +%attr(0755,root,root) %{_bindir}/ebpf_collector +%attr(0700,root,root) /usr/lib/ebpf_collector.bpf.o %changelog +* Fri May 30 2025 shixuantong - 1.0.2-78 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:optimize sysSentry dependencies + * Sat Mar 29 2025 shixuantong - 1.0.2-77 - Type:bugfix - CVE:NA -- Gitee