AU_CLASS(3)

πŸ“¦
version 1.1 Β· 2 versions
, in nixos 26.05, nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is AU_CLASS(3), from the Library Functions Manual, and it's literally here to help you look up information from the audit_class database with getauclassent, getauclassent_r, getauclassnam, getauclassnam_r, setauclass, and endauclass πŸ’–

πŸŽ€ LIBRARY πŸŽ€

It lives in the Basic Security Module Library (libbsm, -lbsm), periodt ✨

✨ 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 β€” yep, the one that describes audit event classes β€” and audit event classes are described by struct au_class_ent 🫢

The getauclassent() function will return the next class found in the audit_class(5) database, or the first if the function has not yet been called. NULL will be returned if no further records are available. no cap, that's the whole deal 😭

The getauclassnam() function looks up a class by name. NULL will be returned if no matching class can be found. slay, but with a sad little NULL if it misses πŸ’”

The setauclass() function resets the iterator through the audit_class(5) database, causing the next call to getauclassent() to start again from the beginning of the file. it's giving rewind energy βͺ✨

The endauclass() function closes the audit_class(5) database, if open. bye bestie, close the door behind you πŸšͺπŸ’¨

also the synopsis has the _r girlies too: getauclassent_r() takes a struct au_class_ent *e, and getauclassnam_r() takes a struct au_class_ent *e, const char *name β€” their signatures are right up there in the code block, iykyk 🧚

πŸ”₯ 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. yeah, that's a real bug, not a vibe check failure β€” dramatic but true 😭


byeee, this page comes from Debian, dated April 19, 2005 β€” mwah πŸ’‹

πŸ“¦ where this page comes from