AU_BSM_TO_DOMAIN(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

🌸 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