3 Commits

Author SHA1 Message Date
yo
10201023f0 v0.6.3: BUGFIX: Append to current.godit so we do not block when file already exist 2023-12-22 09:42:42 +01:00
yo
3e4cdd6f35 Update readme 2023-12-18 14:00:28 +01:00
yo
f4314a8940 go version bump to 1.18 2023-12-18 13:13:51 +01:00
3 changed files with 5 additions and 3 deletions

View File

@ -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
View File

@ -1,5 +1,5 @@
module godit
go 1.17
go 1.18
require github.com/spf13/pflag v1.0.5

View File

@ -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
}