mac_prepare.3 (5bc8d712832e4923eda403a42cf4f7a803e930cc) | mac_prepare.3 (ace5be682d8e04a1dccf8939efa1babe059e3609) |
---|---|
1.\" Copyright (c) 2002 Networks Associates Technology, Inc. 2.\" All rights reserved. | 1.\" Copyright (c) 2002 Networks Associates Technology, Inc. 2.\" All rights reserved. |
3.\" | 3.\" |
4.\" This software was developed for the FreeBSD Project by Chris 5.\" Costello at Safeport Network Services and Network Associates Labs, 6.\" the Security Research Division of Network Associates, Inc. under 7.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 8.\" DARPA CHATS research program. | 4.\" This software was developed for the FreeBSD Project by Chris 5.\" Costello at Safeport Network Services and Network Associates Labs, 6.\" the Security Research Division of Network Associates, Inc. under 7.\" DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 8.\" DARPA CHATS research program. |
9.\" | 9.\" |
10.\" Redistribution and use in source and binary forms, with or without 11.\" modification, are permitted provided that the following conditions 12.\" are met: 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. | 10.\" Redistribution and use in source and binary forms, with or without 11.\" modification, are permitted provided that the following conditions 12.\" are met: 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. |
18.\" | 18.\" |
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 29.\" SUCH DAMAGE. | 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 29.\" SUCH DAMAGE. |
30.\" | 30.\" |
31.\" $FreeBSD$ | 31.\" $FreeBSD$ |
32.Dd DECEMBER 12, 2002 | 32.\" 33.Dd December 12, 2002 |
33.Os 34.Dt MAC_PREPARE 3 35.Sh NAME | 34.Os 35.Dt MAC_PREPARE 3 36.Sh NAME |
36.Nm mac_prepare 37.Nd allocate appropriate storage for mac_t | 37.Nm mac_prepare , mac_prepare_file_label , 38.Nm mac_prepare_ifnet_label , mac_prepare_process_label 39.Nd allocate appropriate storage for 40.Vt mac_t |
38.Sh SYNOPSIS | 41.Sh SYNOPSIS |
39.In "sys/mac.h" | 42.In sys/mac.h |
40.Ft int 41.Fn mac_prepare "mac_t *mac" "char *elements" 42.Ft int 43.Fn mac_prepare_file_label "mac_t *mac" 44.Ft int 45.Fn mac_prepare_ifnet_label "mac_t *mac" 46.Ft int 47.Fn mac_prepare_process_label "mac_t *mac" 48.Sh DESCRIPTION 49The 50.Nm 51family of functions allocates the appropriate amount of storage and initializes 52.Fa *mac 53for use by 54.Xr mac_get 3 . 55.Pp 56The 57.Fn mac_prepare | 43.Ft int 44.Fn mac_prepare "mac_t *mac" "char *elements" 45.Ft int 46.Fn mac_prepare_file_label "mac_t *mac" 47.Ft int 48.Fn mac_prepare_ifnet_label "mac_t *mac" 49.Ft int 50.Fn mac_prepare_process_label "mac_t *mac" 51.Sh DESCRIPTION 52The 53.Nm 54family of functions allocates the appropriate amount of storage and initializes 55.Fa *mac 56for use by 57.Xr mac_get 3 . 58.Pp 59The 60.Fn mac_prepare |
58function accepts a list of policy names as a parameter and allocates the | 61function accepts a list of policy names as a parameter, and allocates the |
59storage to fit those label elements accordingly. 60.Pp 61The 62.Fn mac_prepare_file_label , 63.Fn mac_prepare_ifnet_label , 64and 65.Fn mac_prepare_process_label 66functions allocate the storage to fit file, network interface, 67and process labels, respectively. 68.Sh RETURN VALUES | 62storage to fit those label elements accordingly. 63.Pp 64The 65.Fn mac_prepare_file_label , 66.Fn mac_prepare_ifnet_label , 67and 68.Fn mac_prepare_process_label 69functions allocate the storage to fit file, network interface, 70and process labels, respectively. 71.Sh RETURN VALUES |
69.Rv -std mac_prepare mac_prepare_file_label mac_prepare_ifnet_label mac_prepare_process_label | 72.Rv -std |
70.Sh SEE ALSO 71.Xr mac 3 , 72.Xr mac_free 3 , 73.Xr mac_get 3 , 74.Xr mac_is_present_np 3 , 75.Xr mac_set 3 , 76.Xr mac 4 , 77.Xr maclabel 7 78.Sh STANDARDS | 73.Sh SEE ALSO 74.Xr mac 3 , 75.Xr mac_free 3 , 76.Xr mac_get 3 , 77.Xr mac_is_present_np 3 , 78.Xr mac_set 3 , 79.Xr mac 4 , 80.Xr maclabel 7 81.Sh STANDARDS |
79POSIX.1e is described in IEEE POSIX.1e draft 17. | 82POSIX.1e is described in IEEE POSIX.1e draft 17. |
80Discussion of the draft 81continues on the cross-platform POSIX.1e implementation mailing list. 82To join this list, see the 83.Fx 84POSIX.1e implementation page 85for more information. | 83Discussion of the draft 84continues on the cross-platform POSIX.1e implementation mailing list. 85To join this list, see the 86.Fx 87POSIX.1e implementation page 88for more information. |