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 Labs, the Security 6.\" Research Division of Network Associates, Inc. under DARPA/SPAWAR 7.\" contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS research 8.\" 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.\" 3. The names of the authors may not be used to endorse or promote 19.\" products derived from this software without specific prior written 20.\" permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.\" $FreeBSD$ 35.Dd OCTOBER 25, 2002 36.Os 37.Dt MACLABEL 7 38.Sh NAME 39.Nm maclabel 40.Nd Mandatory Access Control label format 41.Sh DESCRIPTION 42If Mandatory Access Control, or 43.Dq MAC , 44is enabled in your kernel, 45then in addition to the traditional credentials, 46each subject 47(typically a user or a socket) 48and object 49(file system object, socket, etc) 50is given a 51.Em MAC label . 52The MAC label specifies the necessary subject-specific or 53object-specific information necessary for a MAC security policy 54.\" .Xr ( mac 9 ) 55to enforce access control on the subject/object. 56.Pp 57The format for a MAC label is defined as follows: 58.Dl Sy policy1 Ns No / Ns Sy qualifier1 , Ns Sy policy2 Ns No / Ns Sy qualifier2 , Ns ... 59.Pp 60A MAC label consists of a policy name, 61followed by a forward slash, 62followed by the subject or object's qualifier, 63optionally followed by a comma and one or more additional policy labels. 64For example: 65.Pp 66.Dl Li "biba/low(low-low)" 67.Dl Li "biba/high(low-high),mls/equal(equal-equal),partition/0" 68.Sh SEE ALSO 69.Xr mac 3 , 70.Xr posix1e 3 , 71.Xr mac_biba 4 , 72.Xr mac_bsdextended 4 , 73.Xr mac_ifoff 4 , 74.Xr mac_mls 4 , 75.Xr mac_none 4 , 76.Xr mac_partition 4 , 77.Xr mac_seeotheruids 4 , 78.Xr mac_test 4 , 79.Xr login.conf 5 , 80.Xr ifconfig 8 , 81.Xr getfmac 8 , 82.Xr getpmac 8 , 83.Xr setfmac 8 , 84.Xr setpmac 8 , 85.Xr mac 9 , 86.Sh HISTORY 87MAC first appeared in 88.Fx 5.0 . 89.Sh AUTHORS 90This software was contributed to the 91.Fx 92Project by NAI Labs, the Security Research Division of Network Associates 93Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), 94as part of the DARPA CHATS research program. 95