selinuxfs

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMountPoint = fs.DefaultSelinuxMountPoint

DefaultMountPoint is the common mount point of the selinuxfs filesystem.

Variables

This section is empty.

Functions

This section is empty.

Types

type AVCHashStat

type AVCHashStat struct {
	// Number of entries
	Entries uint64
	// Number of buckets used
	BucketsUsed uint64
	// Number of buckets available
	BucketsAvailable uint64
	// Length of the longest chain
	LongestChain uint64
}

SELinux access vector cache hashtable statistics.

type AVCStat

type AVCStat struct {
	// Number of total lookups
	Lookups uint64
	// Number of total hits
	Hits uint64
	// Number of total misses
	Misses uint64
	// Number of total allocations
	Allocations uint64
	// Number of total reclaims
	Reclaims uint64
	// Number of total frees
	Frees uint64
}

SELinux access vector cache statistics.

type FS

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

FS represents the pseudo-filesystem selinixfs, which provides an interface to SELinux data structures.

func NewDefaultFS

func NewDefaultFS() (FS, error)

NewDefaultFS returns a new FS mounted under the default mountPoint. It will error if the mount point can't be read.

func NewFS

func NewFS(mountPoint string) (FS, error)

NewFS returns a new FS mounted under the given mountPoint. It will error if the mount point can't be read.

func (FS) ParseAVCHashStats

func (fs FS) ParseAVCHashStats() (AVCHashStat, error)

ParseAVCHashStats returns the SELinux access vector cache hashtable statistics, or error on failure.

func (FS) ParseAVCStats

func (fs FS) ParseAVCStats() (AVCStat, error)

ParseAVCStats returns the total SELinux access vector cache statistics, or error on failure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳