selabel_stats(3)

πŸ’– selabel_stats β€” the girlies are getting the receipts πŸ’–

okay bestie so selabel_stats is a function from the SELinux API documentation and it's literally here to spill the tea on your labeling backend. no cap.


✨ NAME ✨

selabel_stats β€” obtain SELinux labeling statistics πŸ“


🌸 SYNOPSIS 🌸

#include <selinux/selinux.h>
#include <selinux/label.h>

void selabel_stats(struct selabel_handle *hnd);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so selabel_stats() makes zero or more messages get printed. zero. or more. it's giving mysterious ✨. those messages contain backend-specific info β€” like the number of queries performed, the number of unused entries, or other operational information. iykyk, it depends on the backend.

the messages are printed to standard error by default, but a custom logging function can be provided via selinux_set_callback(3). so if you want them somewhere else, that's your girl πŸ’…

πŸ’œ RETURN VALUE πŸ’œ

None. that's it. nothing. void. she gives nothing back, she just talks. iconic behaviour fr fr 😭


πŸ™ˆ ERRORS πŸ™ˆ

None. no errors, no drama, no stress. periodt.


πŸ‘‘ AUTHOR πŸ‘‘

Eamon Walsh <ewalsh@tycho.nsa.gov> 🫢


🌈 SEE ALSO 🌈


okay that's the whole page bestie, go forth and get your stats πŸ’–βœ¨πŸŽ€

and fr, this one's dated 18 Jun 2007, coming at you from the SELinux API documentation crew β€” slay πŸ’…πŸ¦‹

πŸ“¦ where this page comes from