BSDE_RULE_TO_STRING(3)

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

πŸ’… BSDE_RULE_TO_STRING(3) πŸ’…

okay so bestie, we're in the <ugidfw.h> cinematic universe today and the main character is bsde_rule_to_string β€” she takes a ugidfw rule and turns it into her text representation. this is a page from the Library Functions Manual and honestly? she ate. πŸŽ€


✨ LIBRARY ✨

File System Firewall Interface Library β€” that's libugidfw, and you link her with -lugidfw. slay. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <ugidfw.h>

int
bsde_rule_to_string(struct mac_bsdextended_rule *rule, char *buf,
    size_t buflen);

πŸ’– DESCRIPTION πŸ’–

so bsde_rule_to_string() takes a rule that's chilling in its internal representation (that's struct mac_bsdextended_rule, iykyk) and converts it into its text representation. then she writes up to buflen bytes of it into buf β€” and yes, that byte count includes the terminating NUL. no cap, the NUL counts. 🫢


⭐ RETURN VALUES ⭐

  • -1 β€” the conversion got truncated (the vibe check failed, there wasn't enough room 😭)
  • 0 β€” literally anything else, everything's fine, we're so back πŸ’œ

🌈 SEE ALSO 🌈


πŸ‘‘ AUTHORS πŸ‘‘

this software was contributed to the FreeBSD Project by Network Associates Labs, the Security Research Division of Network Associates Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (β€œCBOSS”), as part of the DARPA CHATS research program. iconic of them fr fr πŸ’…


ok that's the whole page, periodt. go convert some rules bestie 🧚

Debian Β· January 7, 2003 Β· BSDE_RULE_TO_STRING(3) β€” mwah, catch you in the next manpage πŸ’‹βœ¨

πŸ“¦ where this page comes from