diff options
Diffstat (limited to 'src/godo.go')
-rw-r--r-- | src/godo.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/godo.go b/src/godo.go index 6f73893..72f68c0 100644 --- a/src/godo.go +++ b/src/godo.go | |||
@@ -20,24 +20,6 @@ var ( | |||
20 | receiveOnly = fs.Bool("ro", false, "receive only using multicast, requires kernel 3.16+") | 20 | receiveOnly = fs.Bool("ro", false, "receive only using multicast, requires kernel 3.16+") |
21 | ) | 21 | ) |
22 | 22 | ||
23 | type Event struct { | ||
24 | timestamp time.Time | ||
25 | pid, ppid int | ||
26 | syscall int | ||
27 | argc int | ||
28 | argv []string | ||
29 | cwd string | ||
30 | } | ||
31 | |||
32 | type process struct { | ||
33 | timestamp time.Time | ||
34 | pid, ppid int | ||
35 | argv []string | ||
36 | cwd string | ||
37 | rootfs string | ||
38 | children []int | ||
39 | } | ||
40 | |||
41 | func main() { | 23 | func main() { |
42 | // 检查用户身份,并添加auditd规则,监听所有syscall | 24 | // 检查用户身份,并添加auditd规则,监听所有syscall |
43 | if os.Geteuid() != 0 { | 25 | if os.Geteuid() != 0 { |