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