summaryrefslogtreecommitdiffstats
path: root/src/organize.go
diff options
context:
space:
mode:
authorWe-unite <3205135446@qq.com>2024-07-29 14:25:06 +0800
committerWe-unite <3205135446@qq.com>2024-07-29 14:25:06 +0800
commit0deb0b10c28f72f08c330f183ef64d90405b1358 (patch)
tree257cecc63c0de65d04493ef09e5719747ae89975 /src/organize.go
parenta345258c3082903702c81c6c830ff1fd35758861 (diff)
downloadgodo-0deb0b10c28f72f08c330f183ef64d90405b1358.tar.gz
godo-0deb0b10c28f72f08c330f183ef64d90405b1358.zip
Add write
Diffstat (limited to '')
-rw-r--r--src/organize.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/organize.go b/src/organize.go
index 1b064c1..f5c9992 100644
--- a/src/organize.go
+++ b/src/organize.go
@@ -160,6 +160,20 @@ func syscallRaw(rawEvent libaudit.RawAuditMessage) {
160 syscallParam: a, 160 syscallParam: a,
161 pathName: "", 161 pathName: "",
162 }) 162 })
163 case "write":
164 eventTable.Store(eventId, &Event{
165 tag: FILEWRITE,
166 timestamp: event.timestamp,
167 syscall: event.syscall,
168 exit_code: uint64(exit),
169 ppid: event.ppid,
170 pid: event.pid,
171 argc: 0,
172 argv: make([]string, 0),
173 cwd: "",
174 syscallParam: a,
175 // pathName: "",
176 })
163 case "close": 177 case "close":
164 // 文件关闭 178 // 文件关闭
165 eventTable.Store(eventId, &Event{ 179 eventTable.Store(eventId, &Event{