Initial import from FreeBSD RELENG_4:
[games.git] / lib / libposix1e / posix1e.3
1 .\"-
2 .\" Copyright (c) 2000 Robert N. M. Watson
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\"
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 .\" SUCH DAMAGE.
25 .\"
26 .\" $FreeBSD: src/lib/libposix1e/posix1e.3,v 1.3.2.6 2001/12/20 16:27:06 ru Exp $
27 .\"
28 .Dd January 17, 2000
29 .Dt POSIX1E 3
30 .Os
31 .Sh NAME
32 .Nm posix1e
33 .Nd introduction to the POSIX.1e security API
34 .Sh LIBRARY
35 .Lb libposix1e
36 .Sh SYNOPSIS
37 .In sys/types.h
38 .In sys/acl.h
39 .In sys/audit.h
40 .In sys/capability.h
41 .In sys/mac.h
42 .Sh DESCRIPTION
43 The IEEE POSIX.1e specification never left draft form, but the interfaces
44 it describes are now widely used despite inherent limitations.  Currently,
45 only a few of the interfaces and features are implemented in
46 .Fx ,
47 although efforts are underway to complete the integration at this time.
48 .Pp
49 POSIX.1e describes five security extensions to the base POSIX.1 API:
50 Access Control Lists (ACLs), Auditing, Capabilities, Mandatory Access
51 Control, and Information Flow Labels.  Of these, the ACL interfaces are
52 currently included with
53 .Fx ,
54 Auditing, Capabilities, and Mandatory
55 Access Control are in the wings, and Information Flow Labels are not on
56 the calendar.
57 .Pp
58 POSIX.1e defines both syntax and semantics for these features, but fairly
59 substantial changes are required to implement these features in the
60 operating system.  As shipped,
61 .Fx 4.0
62 permits file systems to export
63 Access Control Lists via the VFS, and provides a library for userland
64 access to and manipulation of these ACLs, but support for ACLs is not
65 provided by any file systems shipped in the base operating system.
66 Available API calls relating to ACLs are described in detail in
67 .Xr acl 3 .
68 .Pp
69 The patches supporting other POSIX.1e features are not available in the
70 base operating system at this time--however, more information on them
71 may be found on the FreeBSD POSIX.1e implementation web page:
72 .Pp
73 http://www.watson.org/fbsd-hardening/posix1e/
74 .Sh IMPLEMENTATION NOTES
75 .Fx Ns 's
76 support for POSIX.1e interfaces and features is still under
77 development at this time.
78 .Sh ENVIRONMENT
79 POSIX.1e assigns security labels to all objects, extending the security
80 functionality described in POSIX.1.  These additional labels provide
81 fine-grained discretionary access control, fine-grained capabilities,
82 and labels necessary for mandatory access control.  POSIX.2c describes
83 a set of userland utilities for manipulating these labels.  These userland
84 utilities are not bundled with
85 .Fx 4.0
86 so as to discourage their
87 use in the short term.
88 .Sh FILES
89 .Sh SEE ALSO
90 .Xr acl 3 ,
91 .Xr acl 9 ,
92 .Xr extattr 9
93 .Sh STANDARDS
94 POSIX.1e is described in IEEE POSIX.1e draft 17.  Discussion
95 of the draft continues on the cross-platform POSIX.1e implementation
96 mailing list.  To join this list, see the
97 .Fx
98 POSIX.1e implementation
99 page for more information.
100 .Sh HISTORY
101 POSIX.1e support was introduced in
102 .Fx 4.0 ,
103 and development continues.
104 .Sh AUTHORS
105 .An Robert N M Watson ,
106 .An Ilmar S Habibulin
107 .Sh BUGS
108 These features are not yet fully implemented.  In particular, the shipped
109 version of UFS/FFS does not support storage of additional security labels,
110 and so is unable to (easily) provide support for most of these features.