auditlog

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

package auditlog implements support for manipulating kernel audit system

Index

Constants

This section is empty.

Variables

View Source
var Domains = []string{

	"gravity_t",
	"gravity_installer_t",

	"gravity_container_runtime_t",
	"gravity_container_init_t",
	"gravity_container_systemctl_t",
	"gravity_kubernetes_t",
	"gravity_service_t",
	"gravity_container_t",
	"gravity_container_system_t",
	"gravity_container_logger_t",
}

Domains lists all gravity SELinux process domains for auditing

Functions

This section is empty.

Types

type Auditlog

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

Auditlog manages audit rules on the host

func New

func New() *Auditlog

New returns a new instance of the logger

func (*Auditlog) AddDefaultRules

func (r *Auditlog) AddDefaultRules() error

AddDefaultRules adds default audit rules for all known domains

func (*Auditlog) RemoveRules

func (r *Auditlog) RemoveRules() error

RemoveRules removes previously configured audit rules

Jump to

Keyboard shortcuts

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