AU_BSM_TO_DOMAIN(3)
πΈ NAME πΈ
okay so bestie, you're reading AU_BSM_TO_DOMAIN(3) from the Library Functions Manual, and it's literally about au_bsm_to_domain, au_domain_to_bsm β convert between BSM and local protocol domains. π
π LIBRARY π
Basic Security Module Library (libbsm, -lbsm) β that's the library line, bestie. π«Ά
β¨ SYNOPSIS β¨
#include <bsm/libbsm.h>
int
au_bsm_to_domain(u_short bsm_domain, int *local_domainp);
u_short
au_domain_to_bsm(int local_domain);
π DESCRIPTION π
These interfaces are your little conversion station between the local and BSM protocol domains, no cap.
So au_bsm_to_domain() takes a BSM domain called bsm_domain, converts it into a local domain β like the kind you pass to socket(2) β and if it works, tucks that converted value into the integer that local_domainp points at. π¦
Heads up: this call fails if the BSM domain can't be mapped into a local domain β that can happen when the socket token was generated on another operating system. π
Then au_domain_to_bsm() flips it: it takes a local domain and returns the BSM domain for it. This call cannot fail, and instead returns a BSM domain that tells a later decoder the domain could not be encoded. Iconic non-failure behavior, honestly. β¨
π₯ RETURN VALUES π₯
Success slay: au_bsm_to_domain() returns 0 and gives you a converted domain. Failure era: it returns -1, but plot twist, it does not set errno(2). π
π SEE ALSO π
π¦ HISTORY π¦
au_bsm_to_domain() and au_domain_to_bsm() were introduced in OpenBSM 1.1. periodt. π
π AUTHORS π
These functions were implemented by Robert Watson under contract to Apple Inc. β main character implementation energy. π
The Basic Security Module (BSM) interface to audit records and audit event stream format were defined by Sun Microsystems. iconic. π
π and that's the page, bestie! brought to you by Debian, dated December 28, 2008, under the AU_BSM_TO_DOMAIN(3) manual banner. mwah. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2008 Apple Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms