audit

package
v0.0.0-...-5d92bec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProcInfo

func GetProcInfo(pid int32) (string, error)

func StartWorker

func StartWorker()

Types

type Auditor

type Auditor struct {
	Event chan *Event
	// contains filtered or unexported fields
}

func NewAuditor

func NewAuditor(perm bool) (*Auditor, error)

!!! IMPORTANT !!! Sometimes perm=true unexpectedly makes whole system hanged-up. I do not realize why the problem occurs, so please be careful to use it :P

func (*Auditor) WatchFile

func (a *Auditor) WatchFile(path string) error

func (*Auditor) WatchMount

func (a *Auditor) WatchMount(path string) error

type Event

type Event struct {
	Acts        []string
	FileName    string
	ProcessInfo string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL