1781a15a5SRobert Watson.\" Copyright (c) 2003 Networks Associates Technology, Inc. 2781a15a5SRobert Watson.\" All rights reserved. 3781a15a5SRobert Watson.\" 4781a15a5SRobert Watson.\" This software was developed for the FreeBSD Project in part by Network 5781a15a5SRobert Watson.\" Associates Laboratories, the Security Research Division of Network 6781a15a5SRobert Watson.\" Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), 7781a15a5SRobert Watson.\" as part of the DARPA CHATS research program. 8781a15a5SRobert Watson.\" 9781a15a5SRobert Watson.\" Redistribution and use in source and binary forms, with or without 10781a15a5SRobert Watson.\" modification, are permitted provided that the following conditions 11781a15a5SRobert Watson.\" are met: 12781a15a5SRobert Watson.\" 1. Redistributions of source code must retain the above copyright 13781a15a5SRobert Watson.\" notice, this list of conditions and the following disclaimer. 14781a15a5SRobert Watson.\" 2. Redistributions in binary form must reproduce the above copyright 15781a15a5SRobert Watson.\" notice, this list of conditions and the following disclaimer in the 16781a15a5SRobert Watson.\" documentation and/or other materials provided with the distribution. 17781a15a5SRobert Watson.\" 18781a15a5SRobert Watson.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 19781a15a5SRobert Watson.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20781a15a5SRobert Watson.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21781a15a5SRobert Watson.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 22781a15a5SRobert Watson.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23781a15a5SRobert Watson.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24781a15a5SRobert Watson.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25781a15a5SRobert Watson.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26781a15a5SRobert Watson.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27781a15a5SRobert Watson.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28781a15a5SRobert Watson.\" SUCH DAMAGE. 29781a15a5SRobert Watson.\" 30781a15a5SRobert Watson.\" $FreeBSD$ 31781a15a5SRobert Watson.\" 32781a15a5SRobert Watson.Dd April 19, 2003 33781a15a5SRobert Watson.Dt MAC.CONF 5 34781a15a5SRobert Watson.Os 35781a15a5SRobert Watson.Sh NAME 36781a15a5SRobert Watson.Nm mac.conf 37781a15a5SRobert Watson.Nd Format of the MAC library configuration file 38781a15a5SRobert Watson.Sh DESCRIPTION 39781a15a5SRobert WatsonThe 40781a15a5SRobert Watson.Nm 41781a15a5SRobert Watsonfile configures the default label elements to be used by policy-agnostic 42781a15a5SRobert Watsonapplications that operate on MAC labels. 43781a15a5SRobert Watson.Nm 44781a15a5SRobert Watsoncontains a series of default label sets specified by object class, 45781a15a5SRobert Watsonin addition to blank lines and comments preceded by a 46781a15a5SRobert Watson.Dv # 47781a15a5SRobert Watsonsymbol. 48781a15a5SRobert Watson.Pp 49781a15a5SRobert WatsonEach declaration consists of a single line with two fields separated 50781a15a5SRobert Watsonby white space: the object class name, and a list of label elements 51781a15a5SRobert Watsonas used by the 52781a15a5SRobert Watson.Xr mac_prepare 3 53781a15a5SRobert Watsonlibrary calls prior to an application invocation of a function from 54781a15a5SRobert Watson.Xr mac_get 3 . 55781a15a5SRobert WatsonLabel element names may optionally begin with a 56781a15a5SRobert Watson.Dv ? 57781a15a5SRobert Watsonsymbol to indicate that a failure to retrieve the label element for 58781a15a5SRobert Watsonan object should be silently ignored, and improves usability if the 59781a15a5SRobert Watsonset of MAC policies may change over time. 60781a15a5SRobert Watson.Sh EXAMPLES 61781a15a5SRobert WatsonThe following example configures user applications to operate with 62781a15a5SRobert Watsonfour MAC policies: 63781a15a5SRobert Watson.Xr mac_biba 4 , 64781a15a5SRobert Watson.Xr mac_mls 4 , 65781a15a5SRobert WatsonSEBSD, 66781a15a5SRobert Watsonand 67781a15a5SRobert Watson.Xr mac_partition 4 . 68781a15a5SRobert Watson.Bd -literal -offset indent 69781a15a5SRobert Watson# 70781a15a5SRobert Watson# Default label set to be used by simple MAC applications 71781a15a5SRobert Watson# 72781a15a5SRobert Watson 73781a15a5SRobert Watsondefault_file_labels ?biba,?mls,?sebsd 74781a15a5SRobert Watsondefault_ifnet_labels ?biba,?mls,?sebsd 75781a15a5SRobert Watsondefault_process_labels ?biba,?mls,partition,?sebsd 76781a15a5SRobert Watson.Ed 772715ba48SRobert Watson.Pp 78781a15a5SRobert WatsonIn this example, userland applications will attempt to retrieve Biba, 79781a15a5SRobert WatsonMLS, and SEBSD labels for all object classes; for processes, they will 80781a15a5SRobert Watsonadditionally attempt to retrieve a Partition identifier. 81781a15a5SRobert WatsonIn all cases except the Partition identifier, failure to retrieve a 82781a15a5SRobert Watsonlabel due to the respective policy not being present will be ignored. 838aa884cbSRobert Watson.Sh FILES 848aa884cbSRobert Watson.Bl -tag -width ".Pa /etc/mac.conf" -compact 858aa884cbSRobert Watson.It Pa /etc/mac.conf 868aa884cbSRobert WatsonMAC library configuration file. 878aa884cbSRobert Watson.El 88781a15a5SRobert Watson.Sh SEE ALSO 89781a15a5SRobert Watson.Xr mac_get 3 , 90781a15a5SRobert Watson.Xr mac_prepare 3 , 91781a15a5SRobert Watson.Xr mac 3 , 92781a15a5SRobert Watson.Xr mac 4 , 93781a15a5SRobert Watson.Xr mac 9 94781a15a5SRobert Watson.Sh HISTORY 95781a15a5SRobert WatsonSupport for Mandatory Access Control was introduced in 96781a15a5SRobert Watson.Fx 5.0 97781a15a5SRobert Watsonas part of the 98781a15a5SRobert Watson.Tn TrustedBSD 99781a15a5SRobert WatsonProject. 100781a15a5SRobert Watson.Sh BUGS 101781a15a5SRobert WatsonThe 102781a15a5SRobert Watson.Tn TrustedBSD 103781a15a5SRobert WatsonMAC Framework and associated policies, interfaces, and 104781a15a5SRobert Watsonapplications are considered to be an experimental feature in 105781a15a5SRobert Watson.Fx . 106781a15a5SRobert WatsonSites considering production deployment should keep the experimental 107781a15a5SRobert Watsonstatus of these services in mind during any deployment process. 108781a15a5SRobert WatsonSee also 109781a15a5SRobert Watson.Xr mac 9 110781a15a5SRobert Watsonfor related considerations regarding the kernel framework. 111