BSDE_PARSE_RULE(3)
π BSDE_PARSE_RULE(3) π
okay bestie, welcome to the BSDE_PARSE_RULE(3) page from the Library Functions Manual β itβs giving file system firewall rule parsing, and weβre gonna get you comfy with it β¨
πΈ NAME πΈ
bsde_parse_rule, bsde_parse_rule_string β parse file system firewall rules
π«Ά LIBRARY π«Ά
File System Firewall Interface Library (libugidfw, -lugidfw) β iconic, no cap π
β¨ SYNOPSIS β¨
#include <ugidfw.h>
int
bsde_parse_rule(int argc, char *argv[],
struct mac_bsdextended_rule *rule, size_t buflen, char *errstr);
int
bsde_parse_rule_string(const char *string,
struct mac_bsdextended_rule *rule, size_t buflen, char *errstr);
π DESCRIPTION π
okay so the bsde_parse_rule() function parses an argument vector (e.g. argv as passed to main()) into rule. If an error occurs π, *errstr is filled in with the error string (up to errlen characters, including the terminating NUL). yes bestie, thatβs the exact wording β periodt.
The bsde_parse_rule_string() function is identical to bsde_parse_rule(), except that it parses a single string rather than an array of arguments. lowkey convenient, highkey slay π¦
π₯ RETURN VALUES π₯
The bsde_parse_rule_string() and bsde_parse_rule() functions return 0 if successful; otherwise the value -1 is returned and the value of *errstr is filled in as documented in βDESCRIPTIONβ. no cap β 0 means it ate, -1 means check the error string π
π¦ SEE ALSO π¦
bsde_delete_rule(3)bsde_get_rule(3)bsde_get_rule_count(3)bsde_get_rule_slots(3)bsde_rule_to_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. shout-out to the main characters who made it happen π
π Sign-off: this page is from Debian, dated January 7, 2003, and itβs the BSDE_PARSE_RULE(3) man page. byeee bestie, go parse some rules! π
π¦ 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