xref: /freebsd/lib/libc/posix1e/posix1e.3 (revision 4f29da19bd44f0e99f021510460a81bf754c21d2)
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.
52.Fx
53supports POSIX.1e ACL interfaces, as well as POSIX.1e-like MAC
54interfaces.
55The TrustedBSD Project has produced but not integrated an implementation
56of POSIX.1e Capabilities.
57.Pp
58POSIX.1e defines both syntax and semantics for these features, but fairly
59substantial changes are required to implement these features in the
60operating system.
61.Pp
62As shipped,
63.Fx 4.0
64provides API and VFS support for ACLs, but not an implementation on any
65native file system.
66.Fx 5.0
67includes support for ACLs as part of UFS1 and UFS2, as well as necessary
68VFS support for additional file systems to export ACLs as appropriate.
69Available API calls relating to ACLs are described in detail in
70.Xr acl 3 .
71.Pp
72As shipped,
73.Fx 5.0
74includes support for Mandatory Access Control as well as POSIX.1e-like
75APIs for label management.
76More information on API calls relating to MAC is available in
77.Xr mac 3 .
78.Pp
79Additional patches supporting POSIX.1e features are provided by the
80TrustedBSD project:
81.Pp
82http://www.TrustedBSD.org/
83.Sh IMPLEMENTATION NOTES
84.Fx Ns 's
85support for POSIX.1e interfaces and features is still under
86development at this time, and many of these features are considered new
87or experimental.
88.Sh ENVIRONMENT
89POSIX.1e assigns security labels to all objects, extending the security
90functionality described in POSIX.1.
91These additional labels provide
92fine-grained discretionary access control, fine-grained capabilities,
93and labels necessary for mandatory access control.
94POSIX.2c describes
95a set of userland utilities for manipulating these labels.
96.Pp
97Many of these services are supported by extended attributes, documented
98in
99.Xr extattr 2
100and
101.Xr extattr 9 .
102While these APIs are not documented in POSIX.1e, they are similar in
103structure.
104.Sh SEE ALSO
105.Xr extattr 2 ,
106.Xr acl 3 ,
107.Xr mac 3 ,
108.Xr acl 9 ,
109.Xr extattr 9 ,
110.Xr mac 9
111.Sh STANDARDS
112POSIX.1e is described in IEEE POSIX.1e draft 17.
113Discussion of the draft continues
114on the cross-platform POSIX.1e implementation
115mailing list.
116To join this list, see the
117.Fx
118POSIX.1e implementation
119page for more information.
120.Sh HISTORY
121POSIX.1e support was introduced in
122.Fx 4.0 ;
123most of the features are available as of
124.Fx 5.0 .
125Development continues.
126.Sh AUTHORS
127.An Robert N M Watson
128.An Chris D. Faulhaber
129.An Thomas Moestl
130.An Ilmar S Habibulin
131.Sh BUGS
132Many of these features are considered new or experimental in
133.Fx 5.0
134and should be deployed with appropriate caution.
135