Documentation
¶
Index ¶
Constants ¶
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 ¶
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.