au_class3
Look up information from the audit_class database
Usage
#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);
Library
library “libbsm”
Overview
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.
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.
The getauclassnam() function looks up a class by name. NULL will be returned if no matching class can be found.
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.
The endauclass() function closes the audit_class(5) database, if open.
Releases
47 releases since FreeBSD 6.2-RELEASE; the text changed 3 times.