AU_FREE_TOKEN(3)

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

πŸ’… au_free_token(3) β€” deallocate a token_t (Library Functions Manual) πŸ’…

πŸŽ€ NAME πŸŽ€

au_free_token β€” okay so bestie, this is the little cleanup icon that deallocates a token_t created by any of the au_to_*() BSM API functions. Slay.

πŸ“š LIBRARY πŸ“š

Basic Security Module Library (libbsm, -lbsm). That's the whole vibe.

✨ SYNOPSIS ✨

#include <bsm/libbsm.h>

void
au_free_token(token_t *tok);

πŸ’– DESCRIPTION πŸ’–

The BSM API generally manages deallocation of token_t objects. However, if au_write(3) is passed a bad audit descriptor, the token_t * parameter will be left untouched. In that case, the caller can deallocate the token_t using au_free_token() if desired. No cap.

The tok argument is a token_t * generated by one of the au_to_*() BSM API calls. For convenience, tok may be NULL, in which case au_free_token() returns immediately. Literally that simple πŸ’….

🧚 IMPLEMENTATION NOTES 🧚

This is, in fact, what audit_write(3) does, in keeping with the existing memory management model of the BSM API. Periodt.

πŸ‘€ 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 behavior, 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.


🫢 Debian, April 19, 2005 β€” AU_FREE_TOKEN(3) signing off πŸ’–
πŸ“¦ where this page comes from