1 .\" Copyright (c) 2003-2004 Networks Associates Technology, Inc.
2 .\" All rights reserved.
4 .\" This software was developed for the FreeBSD Project by Chris
5 .\" Costello at Safeport Network Services and Network Associates
6 .\" Laboratories, the Security Research Division of Network Associates,
7 .\" Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part
8 .\" of the DARPA CHATS research program.
10 .\" Redistribution and use in source and binary forms, with or without
11 .\" modification, are permitted provided that the following conditions
13 .\" 1. Redistributions of source code must retain the above copyright
14 .\" notice, this list of conditions and the following disclaimer.
15 .\" 2. Redistributions in binary form must reproduce the above copyright
16 .\" notice, this list of conditions and the following disclaimer in the
17 .\" documentation and/or other materials provided with the distribution.
19 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
41 .Nd "file system firewall rules list management"
48 .Fa "int *rulenum" "struct mac_bsdextended_rule *rule"
49 .Fa "size_t buflen" "char *errstr"
53 .Fa "int rulenum" "struct mac_bsdextended_rule *rule"
54 .Fa "size_t errlen" "char *errstr"
58 .Fa "int rulenum" "struct mac_bsdextended_rule *rule"
59 .Fa "size_t errlen" "char *errstr"
62 .Fn bsde_delete_rule "int rulenum" "size_t errlen" "char *errstr"
66 function fills the next available
68 .Vt "struct mac_bsdextended_rule"
72 .Xr bsde_parse_rule 3 ) .
75 is filled with the error string
78 characters, including the terminating
84 the rule number used will be returned in
91 with the rule numbered
95 is filled in with the error string
98 characters, including the terminating
103 function fills the slot numbered
105 with the specified rule
107 .Vt "struct mac_bsdextended_rule"
111 .Xr bsde_parse_rule 3 ) .
114 is filled with the error string
117 characters, including the terminating
122 function deletes the rule numbered
126 is filled with the error string
129 characters, including the terminating
137 functions return 0 if successful;
138 otherwise the value \-1 is returned and the value of
140 is filled in as documented in
143 .Xr bsde_get_rule_count 3 ,
144 .Xr bsde_get_rule_slots 3 ,
145 .Xr bsde_parse_rule 3 ,
146 .Xr bsde_parse_rule_string 3 ,
147 .Xr bsde_rule_to_string 3 ,
149 .Xr mac_bsdextended 4 ,
152 This software was contributed to the
154 Project by Network Associates Labs,
155 the Security Research Division of Network Associates
157 under DARPA/SPAWAR contract N66001-01-C-8035
159 as part of the DARPA CHATS research program.