AvcHashStats - File /sys/fs/selinux/avc/hash_stats

This parser reads the content of /sys/fs/selinux/avc/hash_stats.

class insights.parsers.avc_hash_stats.AvcHashStats(context, extra_bad_lines=None)[source]

Bases: insights.core.CommandParser, insights.core.LegacyItemAccess

Class AvcHashStats parses the content of the /sys/fs/selinux/avc/hash_stats.

entries

It is used to show the count of avc hash entries.

Type

int

buckets

It is used to show the total count of buckets.

Type

int

buckets_used

It is used to show the count of used buckets.

Type

int

longest_chain

It is used to show the longest chain.

Type

int

A typical sample of the content of this file looks like:

entries: 509
buckets used: 290/512
longest chain: 7

Examples

>>> type(avc_hash_stats)
<class 'insights.parsers.avc_hash_stats.AvcHashStats'>
>>> avc_hash_stats.entries
509
>>> avc_hash_stats.buckets
512
>>> avc_hash_stats.buckets_used
290
>>> avc_hash_stats.longest_chain
7
parse_content(content)[source]

This method must be implemented by classes based on this class.