add fix report patch
fix report api function Signed-off-by: hurricane618 <hurricane618@hotmail.com>
This commit is contained in:
parent
aa9d4c1900
commit
3a90ba3ffc
37
0001-fix-report-api-function.patch
Normal file
37
0001-fix-report-api-function.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From 5d6a6d72e6c6d7fca825600a968ef1c12cba3c32 Mon Sep 17 00:00:00 2001
|
||||||
|
From: hurricane618 <hurricane618@hotmail.com>
|
||||||
|
Date: Sun, 19 Nov 2023 14:21:12 +0800
|
||||||
|
Subject: [PATCH] fix report api function
|
||||||
|
|
||||||
|
proc_report function change to report
|
||||||
|
|
||||||
|
Signed-off-by: hurricane618 <hurricane618@hotmail.com>
|
||||||
|
---
|
||||||
|
.../cases/program_action/secDetector_program_action.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/kerneldriver/cases/program_action/secDetector_program_action.c b/kerneldriver/cases/program_action/secDetector_program_action.c
|
||||||
|
index 4421e43..2a60aac 100644
|
||||||
|
--- a/kerneldriver/cases/program_action/secDetector_program_action.c
|
||||||
|
+++ b/kerneldriver/cases/program_action/secDetector_program_action.c
|
||||||
|
@@ -307,7 +307,7 @@ static int ptrace_attach_pre_handler(struct secDetector_workflow *wf,
|
||||||
|
timestamp, pi->uid, pi->exe, pi->pid, pi->comm, pi->tgid, pi->ppid, pi->pcomm, pi->pgid, pi->sid, pi->nodename, pi->pns, pi->root_pns,
|
||||||
|
"ptrace_attach", attach_task->pid, current->pid, request, addr, flags);
|
||||||
|
|
||||||
|
- secDetector_proc_report(&log);
|
||||||
|
+ secDetector_report(&log);
|
||||||
|
kfree(log.report_data.text);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
@@ -335,7 +335,7 @@ static int do_pipe2_pre_handler(struct secDetector_workflow *wf,
|
||||||
|
timestamp, pi->uid, pi->exe, pi->pid, pi->comm, pi->tgid, pi->ppid, pi->pcomm, pi->pgid, pi->sid, pi->nodename, pi->pns, pi->root_pns,
|
||||||
|
"");
|
||||||
|
|
||||||
|
- secDetector_proc_report(&log);
|
||||||
|
+ secDetector_report(&log);
|
||||||
|
kfree(log.report_data.text);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
Name : secDetector
|
Name : secDetector
|
||||||
Summary : OS Security Intrusion Detection System
|
Summary : OS Security Intrusion Detection System
|
||||||
Version : 1.0
|
Version : 1.0
|
||||||
Release : 1
|
Release : 2
|
||||||
License : GPL-2.0
|
License : GPL-2.0
|
||||||
Source0 : %{name}-v%{version}.tar.gz
|
Source0 : %{name}-v%{version}.tar.gz
|
||||||
BuildRequires: kernel-devel kernel-headers
|
BuildRequires: kernel-devel kernel-headers
|
||||||
@ -15,6 +15,8 @@ BuildRequires: grpc-devel grpc-plugins protobuf-devel c-ares-devel libuuid-devel
|
|||||||
Requires : kernel
|
Requires : kernel
|
||||||
Requires : protobuf grpc libuuid libbpf
|
Requires : protobuf grpc libuuid libbpf
|
||||||
|
|
||||||
|
Patch0001: 0001-fix-report-api-function.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OS Security Intrusion Detection System
|
OS Security Intrusion Detection System
|
||||||
|
|
||||||
@ -87,6 +89,9 @@ rm -rf %{buildroot}
|
|||||||
%attr(0644,root,root) /usr/include/secDetector/secDetector_topic.h
|
%attr(0644,root,root) /usr/include/secDetector/secDetector_topic.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Nov 19 2023 hurricane618 <hurricane618@hotmail.com> 1.0-2
|
||||||
|
- add fix patch
|
||||||
|
|
||||||
* Sat Nov 18 2023 zcfsite <zhchf2010@126.com> 1.0-1
|
* Sat Nov 18 2023 zcfsite <zhchf2010@126.com> 1.0-1
|
||||||
- release v1.0
|
- release v1.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user