carta
au_to_trailer(3)

au_to_trailer3

Routines for generating bsm audit tokens

Part of au_to_arg(3).

Usage

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

token_t *

Library

library “libbsm”

Overview

These interfaces support the allocation of BSM audit tokens, represented by token_t, for various data types.

au_errno_to_bsm(3) must be used to convert local errno(2) errors to BSM error numbers before they are passed to au_to_return(), au_to_return32(), and au_to_return64().

Return values

On success, a pointer to a token_t will be returned; the allocated token_t can be freed via a call to au_free_token(3). On failure, NULL will be returned, and an error condition returned via errno.

History

  • FreeBSD 16.0-CURRENT (2026-10-27) to FreeBSD 12.0-RELEASE: the text shown here
  • FreeBSD 11.4-RELEASE to FreeBSD 10.3-RELEASE
  • FreeBSD 10.2-RELEASE to FreeBSD 8.0-RELEASE
  • FreeBSD 7.4-RELEASE to FreeBSD 6.3-RELEASE
  • FreeBSD 6.2-RELEASE

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.

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.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.