package selinuxfs
import "github.com/prometheus/procfs/selinuxfs"
Index ¶
Constants ¶
const DefaultMountPoint = fs.DefaultSelinuxMountPoint
DefaultMountPoint is the common mount point of the selinuxfs filesystem.
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 ¶
NewDefaultFS returns a new FS mounted under the default mountPoint. It will error if the mount point can't be read.
func NewFS ¶
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 ¶
ParseAVCStats returns the total SELinux access vector cache statistics, or error on failure.
Source Files ¶
avc_cache_stats.go avc_hash_stats.go fs.go
- Version
- v0.16.1 (latest)
- Published
- Apr 19, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 2 minutes ago –
Tools for package owners.