BSDE_RULE_TO_STRING(3)
π 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 π
bsde_delete_rule(3)bsde_get_rule(3)bsde_get_rule_count(3)bsde_get_rule_slots(3)bsde_parse_rule(3)bsde_parse_rule_string(3)bsde_set_rule(3)libugidfw(3)mac_bsdextended(4)ugidfw(8)
π 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
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2003 Networks Associates Technology, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms