xref: /freebsd/lib/libc/posix1e/posix1e.3 (revision a3e8fd0b7f663db7eafff527d5c3ca3bcfa8a537)
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$
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 libc
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
43The IEEE POSIX.1e specification never left draft form, but the interfaces
44it describes are now widely used despite inherent limitations.
45Currently, only a few of the interfaces and features are implemented in
46.Fx ,
47although efforts are underway to complete the integration at this time.
48.Pp
49POSIX.1e describes five security extensions to the base POSIX.1 API:
50Access Control Lists (ACLs), Auditing, Capabilities, Mandatory Access
51Control, and Information Flow Labels.
52Of these, the ACL interfaces are
53currently included with
54.Fx ,
55Auditing, Capabilities, and Mandatory
56Access Control are in the wings, and Information Flow Labels are not on
57the calendar.
58.Pp
59POSIX.1e defines both syntax and semantics for these features, but fairly
60substantial changes are required to implement these features in the
61operating system.
62As shipped,
63.Fx 4.0
64permits file systems to export
65Access Control Lists via the VFS, and provides a library for userland
66access to and manipulation of these ACLs, but support for ACLs is not
67provided by any file systems shipped in the base operating system.
68Available API calls relating to ACLs are described in detail in
69.Xr acl 3 .
70.Pp
71.Fx
72currently provides documentation and APIs for fine-grained capability
73support, but implementation is currently not included in the base
74system.
75Documentation of these API calls is provided in
76.Xr cap 3 .
77.Pp
78Additional patches supporting POSIX.1e features are provided by the
79TrustedBSD project:
80.Pp
81http://www.trustedbsd.org
82.Sh IMPLEMENTATION NOTES
83.Fx Ns 's
84support for POSIX.1e interfaces and features is still under
85development at this time.
86.Sh ENVIRONMENT
87POSIX.1e assigns security labels to all objects, extending the security
88functionality described in POSIX.1.
89These additional labels provide
90fine-grained discretionary access control, fine-grained capabilities,
91and labels necessary for mandatory access control.
92POSIX.2c describes
93a set of userland utilities for manipulating these labels.
94These userland
95utilities are not bundled with
96.Fx 4.0
97so as to discourage their
98use in the short term.
99.Sh SEE ALSO
100.Xr acl 3 ,
101.Xr cap 3 ,
102.Xr mac 3 ,
103.Xr acl 9 ,
104.Xr cap 9 ,
105.Xr extattr 9 ,
106.Xr mac 9
107.Sh STANDARDS
108POSIX.1e is described in IEEE POSIX.1e draft 17.
109Discussion of the draft continues
110on the cross-platform POSIX.1e implementation
111mailing list.
112To join this list, see the
113.Fx
114POSIX.1e implementation
115page for more information.
116.Sh HISTORY
117POSIX.1e support was introduced in
118.Fx 4.0 ,
119and development continues.
120.Sh AUTHORS
121.An Robert N M Watson
122.An Chris D. Faulhaber
123.An Thomas Moestl
124.An Ilmar S Habibulin
125.Sh BUGS
126These features are not yet fully implemented.
127