fanotify

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fanotifier

type Fanotifier struct {
	// contains filtered or unexported fields
}

Fanotifier monitors "/" mountpoint of a new mount namespace and notifies all accessed files.

func SpawnFanotifier

func SpawnFanotifier(fanotifierBin string) (*Fanotifier, error)

func (*Fanotifier) Close

func (n *Fanotifier) Close() (err error)

Close kills fanotifier process and closes the connection.

func (*Fanotifier) GetPath

func (n *Fanotifier) GetPath() (string, error)

GetPath gets path notified by the fanotifier.

func (*Fanotifier) MountNamespacePath

func (n *Fanotifier) MountNamespacePath() string

MountNamespacePath returns the path to the mount namespace where the fanotifier is monitoring.

func (*Fanotifier) Start

func (n *Fanotifier) Start() error

Start starts fanotifier in the new mount namespace

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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