avc_cache_stats - Online Linux Manual PageSection : 3
Updated : 27 May 2004
Source :
Note : SELinux API documentation

NAMEavc_cache_stats, avc_av_stats, avc_sid_stats − obtain userspace SELinux AVC statistics

SYNOPSIS#include <selinux/selinux.h>
#include <selinux/avc.h> void avc_av_stats(void); void avc_sid_stats(void); void avc_cache_stats(struct avc_cache_stats *stats);

DESCRIPTIONThe userspace AVC maintains two internal hash tables, one to store security ID's and one to cache access decisions. avc_av_stats() and avc_sid_stats() produce log messages indicating the status of the access decision and SID tables, respectively. The messages contain the number of entries in the table, number of hash buckets and number of buckets used, and maximum number of entries in a single bucket. avc_cache_stats() populates a structure whose fields reflect cache activity: struct avc_cache_stats { unsigned entry_lookups; unsigned entry_hits; unsigned entry_misses; unsigned entry_discards; unsigned cav_lookups; unsigned cav_hits; unsigned cav_probes; unsigned cav_misses; };.ta entry_lookups  Number of queries made. entry_hits  Number of times a decision was found in the aeref argument. entry_misses  Number of times a decision was not found in the aeref argument. entry_discards  Number of times a decision was not found in the aeref argument and the aeref argument was non-NULL. cav_lookups  Number of cache lookups. cav_hits  Number of cache hits. cav_misses  Number of cache misses. cav_probes  Number of entries examined while searching the cache.

NOTESWhen the cache is flushed as a result of a call to avc_reset() or a policy change notification, the statistics returned by avc_cache_stats() are reset to zero. The SID table, however, is left unchanged. When a policy change notification is received, a call to avc_av_stats() is made before the cache is flushed.

AUTHOREamon Walsh <ewalsh@tycho.nsa.gov>

SEE ALSOavc_init(3), avc_has_perm(3), avc_context_to_sid(3), avc_add_callback(3), selinux(8)
0
Johanes Gumabo
Data Size   :   7,966 byte
man-avc_sid_stats.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 259,869
Visitor ID   :     :  
Visitor IP   :   3.147.63.222   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (rof_ta|11|avc_cache_stats.3|44|1|.ta )