xref: /freebsd/share/man/man7/maclabel.7 (revision 315ee00f)
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.Dd October 25, 2002
35.Dt MACLABEL 7
36.Os
37.Sh NAME
38.Nm maclabel
39.Nd Mandatory Access Control label format
40.Sh DESCRIPTION
41If Mandatory Access Control, or MAC, is enabled in the kernel,
42then in addition to the traditional credentials,
43each subject
44(typically a user or a socket)
45and object
46(file system object, socket, etc.\&)
47is given a
48.Em "MAC label" .
49The MAC label specifies the necessary subject-specific or
50object-specific information necessary for a MAC security policy
51.\" .Pq Xr mac 9
52to enforce access control on the subject/object.
53.Pp
54The format for a MAC label is defined as follows:
55.Pp
56.Sm off
57.D1 Ar policy1 No / Ar qualifier1 , policy2 No / Ar qualifier2 , No ...
58.Sm on
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.Bd -literal -offset indent
66biba/low(low-low)
67biba/high(low-high),mls/equal(equal-equal),partition/0
68.Ed
69.Sh SEE ALSO
70.Xr mac 3 ,
71.Xr posix1e 3 ,
72.Xr mac_biba 4 ,
73.Xr mac_bsdextended 4 ,
74.Xr mac_ifoff 4 ,
75.Xr mac_mls 4 ,
76.Xr mac_none 4 ,
77.Xr mac_partition 4 ,
78.Xr mac_seeotheruids 4 ,
79.Xr mac_test 4 ,
80.Xr login.conf 5 ,
81.Xr getfmac 8 ,
82.Xr getpmac 8 ,
83.Xr ifconfig 8 ,
84.Xr setfmac 8 ,
85.Xr setpmac 8 ,
86.Xr mac 9
87.Sh HISTORY
88MAC first appeared in
89.Fx 5.0 .
90.Sh AUTHORS
91This software was contributed to the
92.Fx
93Project by NAI Labs, the Security Research Division of Network Associates
94Inc.\& under DARPA/SPAWAR contract N66001-01-C-8035
95.Pq Dq CBOSS ,
96as part of the DARPA CHATS research program.
97