AU_CLASS(3)
π AU_CLASS(3) π
okay bestie, welcome to the Library Functions Manual corner where libbsm does its thing. This is the AU_CLASS(3) page, and we're about to get into the audit_class database like it's the group chat receipts. π«Ά
β¨ NAME β¨
getauclassent, getauclassent_r, getauclassnam, getauclassnam_r, setauclass, endauclass β look up information from the audit_class database
π LIBRARY π
Basic Security Module Library (libbsm, -lbsm)
π§ SYNOPSIS π§
#include <bsm/libbsm.h>
struct au_class_ent *
getauclassent(void);
struct au_class_ent *
getauclassent_r(struct au_class_ent *e);
struct au_class_ent *
getauclassnam(const char *name);
struct au_class_ent *
getauclassnam_r(struct au_class_ent *e, const char *name);
void
setauclass(void);
void
endauclass(void);
πΈ DESCRIPTION πΈ
These interfaces may be used to look up information from the audit_class(5) database, which describes audit event classes. Audit event classes are described by struct au_class_ent. iykyk, structs staying structs. π
getauclassent()β returns the next class found in theaudit_class(5)database, or the first if the function has not yet been called.NULLwill be returned if no further records are available. that's the iterator behavior, bestie β¨getauclassnam()β looks up a class by name.NULLwill be returned if no matching class can be found. name search, no match, no drama β justNULL.setauclass()β resets the iterator through theaudit_class(5)database, causing the next call togetauclassent()to start again from the beginning of the file. rewind era πendauclass()β closes theaudit_class(5)database, if open. cleanup queen behavior π
The synopsis also gives yougetauclassent_r()andgetauclassnam_r(), so yes, the_rvariants are absolutely in the building β they're listed right up there. π
π SEE ALSO π
π¦ HISTORY π¦
The OpenBSM implementation was created by McAfee Research, the security division of McAfee Inc., under contract to Apple Computer, Inc., in 2004. It was subsequently adopted by the TrustedBSD Project as the foundation for the OpenBSM distribution. iconic lineage, honestly π
π AUTHORS π
This software was created by Robert Watson, Wayne Salamon, and Suresh Krishnaswamy for McAfee Research, the security research division of McAfee, Inc., under contract to Apple Computer, Inc.
The Basic Security Module (BSM) interface to audit records and audit event stream format were defined by Sun Microsystems. legends only π
π BUGS π
These routines cannot currently distinguish between an entry not being found and an error accessing the database. The implementation should be changed to return an error via errno when NULL is returned. so likeβ¦ NULL is doing double duty rn, and that's the real plot twist π
π Debian source vibes, dated April 19, 2005 β signing off from AU_CLASS(3), bestie. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2005-2006 Robert N. M. Watson
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms