Compare commits
3 Commits
30ea998620
...
master
Author | SHA1 | Date | |
---|---|---|---|
10201023f0 | |||
3e4cdd6f35 | |||
f4314a8940 |
@ -8,3 +8,5 @@ See http://www.trustedbsd.org/openbsm.html
|
||||
Include a binary "godit" which print audit logs in text or json format
|
||||
Godit can read log files, /dev/auditpipe, or stdin with "-"
|
||||
|
||||
godit can be run as a service with included rc file. It needs audit to be configured to output to /dev/auditpipe.
|
||||
|
||||
|
2
go.mod
2
go.mod
@ -1,5 +1,5 @@
|
||||
module godit
|
||||
|
||||
go 1.17
|
||||
go 1.18
|
||||
|
||||
require github.com/spf13/pflag v1.0.5
|
||||
|
4
main.go
4
main.go
@ -36,7 +36,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
version = "0.6.2"
|
||||
version = "0.6.3"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -54,7 +54,7 @@ func NewWriter(file string) (*bufio.Writer, *os.File, error) {
|
||||
var f *os.File
|
||||
var err error
|
||||
|
||||
f, err = os.OpenFile(file, os.O_CREATE|os.O_WRONLY, 0640)
|
||||
f, err = os.OpenFile(file, os.O_CREATE|os.O_RDWR|os.O_APPEND, 0640)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user