1.\" Copyright (c) 2002 Networks Associates Technology, Inc. 2.\" All rights reserved. 3.\" 4.\" This software was developed for the FreeBSD Project by Chris Costello 5.\" at Safeport Network Services and Network Associates Laboratories, the 6.\" 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.\" 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.\" 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.\" 31.\" $FreeBSD$ 32.Dd OCTOBER 16, 2002 33.Os 34.Dt MAC_BSDEXTENDED 4 35.Sh NAME 36.Nm mac_bsdextended 37.Nd file system firewall policy 38.Sh SYNOPSIS 39To compile the file system firewall policy into your kernel, 40place the following lines in your kernel configuration file: 41.Cd "options MAC" 42.Cd "options MAC_BSDEXTENDED" 43.Pp 44Alternately, to load the file system firewall policy module at boot time, 45place the following line in your kernel configuration file: 46.Cd "options MAC" 47.Pp 48and in 49.Xr loader.conf 5 : 50.Cd mac_bsdextended_load= Ns \&"YES" 51.Sh DESCRIPTION 52The 53.Nm 54interface provides an interface for the system administrator 55to impose mandatory rules regarding users and some system objects. 56Rules are uploaded to the module 57(typically using 58.Xr ugidfw 8 , 59or some other tool utilizing 60.Xr libugidfw 3 ) 61where they are stored internally 62and used to determine whether to allow or deny specific accesses 63(see 64.Xr ugidfw 8 ) . 65.Sh IMPLEMENTATION NOTES 66While the traditional 67.Xr mac 9 68entry points are implemented, 69policy labels are not used; 70instead, access control decisions are made by iterating through the internal 71list of rules until a rule 72which denies the particular access 73is found, 74or the end of the list is reached. 75.Sh SEE ALSO 76.Xr libugidfw 3 , 77.Xr mac 4 , 78.Xr mac_biba 4 , 79.Xr mac_ifoff 4 , 80.Xr mac_lomac 4 , 81.Xr mac_mls 4 , 82.Xr mac_none 4 , 83.Xr mac_partition 4 , 84.Xr mac_seeotheruids 4 , 85.Xr mac_test 4 , 86.Xr ugidfw 8 , 87.Xr mac 9 88.Sh HISTORY 89The 90.Nm 91policy module first appeared in 92.Fx 5.0 93and was developed by the TrustedBSD Project. 94.Sh AUTHORS 95This software was contributed to the 96.Fx 97Project by NAI Labs, the Security Research Division of Network Associates 98Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), 99as part of the DARPA CHATS research program. 100