2000-01-26 16:15:48 +00:00
|
|
|
.\"-
|
|
|
|
.\" Copyright (c) 2000 Robert N. M. Watson
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
2000-10-12 17:58:14 +00:00
|
|
|
.\" $FreeBSD$
|
2000-01-26 16:15:48 +00:00
|
|
|
.\"
|
|
|
|
.Dd January 17, 2000
|
|
|
|
.Dt POSIX1E 3
|
2001-07-10 13:41:46 +00:00
|
|
|
.Os
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh NAME
|
2000-01-29 04:18:51 +00:00
|
|
|
.Nm posix1e
|
|
|
|
.Nd introduction to the POSIX.1e security API
|
2000-04-22 16:13:36 +00:00
|
|
|
.Sh LIBRARY
|
2001-04-05 07:42:56 +00:00
|
|
|
.Lb libc
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh SYNOPSIS
|
2001-10-01 16:09:29 +00:00
|
|
|
.In sys/types.h
|
|
|
|
.In sys/acl.h
|
|
|
|
.\" .In sys/audit.h
|
|
|
|
.In sys/capability.h
|
2002-10-22 01:52:53 +00:00
|
|
|
.In sys/mac.h
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The IEEE POSIX.1e specification never left draft form, but the interfaces
|
2002-10-23 23:55:23 +00:00
|
|
|
it describes are now widely used despite inherent limitations.
|
|
|
|
Currently, only a few of the interfaces and features are implemented in
|
2000-11-14 11:20:58 +00:00
|
|
|
.Fx ,
|
2000-01-26 16:15:48 +00:00
|
|
|
although efforts are underway to complete the integration at this time.
|
2000-12-29 14:08:20 +00:00
|
|
|
.Pp
|
2000-01-26 16:15:48 +00:00
|
|
|
POSIX.1e describes five security extensions to the base POSIX.1 API:
|
|
|
|
Access Control Lists (ACLs), Auditing, Capabilities, Mandatory Access
|
2002-10-23 23:55:23 +00:00
|
|
|
Control, and Information Flow Labels.
|
2002-11-04 20:52:09 +00:00
|
|
|
.Fx
|
|
|
|
supports POSIX.1e ACL interfaces, as well as POSIX.1e-like MAC
|
|
|
|
interfaces.
|
|
|
|
The TrustedBSD Project has produced but not integrated an implementation
|
|
|
|
of POSIX.1e Capabilities.
|
2000-12-29 14:08:20 +00:00
|
|
|
.Pp
|
2000-01-26 16:15:48 +00:00
|
|
|
POSIX.1e defines both syntax and semantics for these features, but fairly
|
2001-07-15 07:53:42 +00:00
|
|
|
substantial changes are required to implement these features in the
|
2002-10-23 23:55:23 +00:00
|
|
|
operating system.
|
2002-11-04 20:52:09 +00:00
|
|
|
.Pp
|
2002-10-23 23:55:23 +00:00
|
|
|
As shipped,
|
2000-11-14 11:20:58 +00:00
|
|
|
.Fx 4.0
|
2002-11-04 20:52:09 +00:00
|
|
|
provides API and VFS support for ACLs, but not an implementation on any
|
|
|
|
native file system.
|
|
|
|
.Fx 5.0
|
|
|
|
includes support for ACLs as part of UFS1 and UFS2, as well as necessary
|
|
|
|
VFS support for additional file systems to export ACLs as appropriate.
|
2000-01-28 20:07:00 +00:00
|
|
|
Available API calls relating to ACLs are described in detail in
|
|
|
|
.Xr acl 3 .
|
2000-12-29 14:08:20 +00:00
|
|
|
.Pp
|
2002-11-04 20:52:09 +00:00
|
|
|
As shipped,
|
|
|
|
.Fx 5.0
|
|
|
|
includes support for Mandatory Access Control as well as POSIX.1e-like
|
|
|
|
APIs for label management.
|
|
|
|
More information on API calls relating to MAC is available in
|
|
|
|
.Xr mac 3 .
|
2000-12-29 14:08:20 +00:00
|
|
|
.Pp
|
2000-06-04 21:18:20 +00:00
|
|
|
Additional patches supporting POSIX.1e features are provided by the
|
|
|
|
TrustedBSD project:
|
2000-12-29 14:08:20 +00:00
|
|
|
.Pp
|
2002-11-04 20:52:09 +00:00
|
|
|
http://www.TrustedBSD.org/
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh IMPLEMENTATION NOTES
|
2001-08-31 02:12:54 +00:00
|
|
|
.Fx Ns 's
|
|
|
|
support for POSIX.1e interfaces and features is still under
|
2002-11-04 20:52:09 +00:00
|
|
|
development at this time, and many of these features are considered new
|
|
|
|
or experimental.
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
POSIX.1e assigns security labels to all objects, extending the security
|
2002-10-23 23:55:23 +00:00
|
|
|
functionality described in POSIX.1.
|
|
|
|
These additional labels provide
|
2000-01-26 16:15:48 +00:00
|
|
|
fine-grained discretionary access control, fine-grained capabilities,
|
2002-10-23 23:55:23 +00:00
|
|
|
and labels necessary for mandatory access control.
|
|
|
|
POSIX.2c describes
|
|
|
|
a set of userland utilities for manipulating these labels.
|
2002-11-04 20:52:09 +00:00
|
|
|
.Pp
|
|
|
|
Many of these services are supported by extended attributes, documented
|
|
|
|
in
|
|
|
|
.Xr extattr 2
|
|
|
|
and
|
|
|
|
.Xr extattr 9 .
|
|
|
|
While these APIs are not documented in POSIX.1e, they are similar in
|
|
|
|
structure.
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh SEE ALSO
|
2002-11-04 20:52:09 +00:00
|
|
|
.Xr extattr 2 ,
|
2002-12-13 16:53:51 +00:00
|
|
|
.Xr acl 3 ,
|
2002-08-09 03:03:08 +00:00
|
|
|
.Xr mac 3 ,
|
2001-07-06 16:46:48 +00:00
|
|
|
.Xr acl 9 ,
|
2002-10-22 01:52:53 +00:00
|
|
|
.Xr extattr 9 ,
|
|
|
|
.Xr mac 9
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh STANDARDS
|
2002-10-23 23:55:23 +00:00
|
|
|
POSIX.1e is described in IEEE POSIX.1e draft 17.
|
|
|
|
Discussion of the draft continues
|
|
|
|
on the cross-platform POSIX.1e implementation
|
|
|
|
mailing list.
|
|
|
|
To join this list, see the
|
2000-01-29 04:18:51 +00:00
|
|
|
.Fx
|
|
|
|
POSIX.1e implementation
|
2000-01-26 16:15:48 +00:00
|
|
|
page for more information.
|
|
|
|
.Sh HISTORY
|
2000-01-29 04:18:51 +00:00
|
|
|
POSIX.1e support was introduced in
|
2002-11-04 20:52:09 +00:00
|
|
|
.Fx 4.0 ;
|
|
|
|
most of the features are available as of
|
|
|
|
.Fx 5.0 .
|
|
|
|
Development continues.
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh AUTHORS
|
2001-09-11 09:26:38 +00:00
|
|
|
.An Robert N M Watson
|
|
|
|
.An Chris D. Faulhaber
|
|
|
|
.An Thomas Moestl
|
2000-01-29 04:18:51 +00:00
|
|
|
.An Ilmar S Habibulin
|
2000-01-26 16:15:48 +00:00
|
|
|
.Sh BUGS
|
2002-11-04 20:52:09 +00:00
|
|
|
Many of these features are considered new or experimental in
|
|
|
|
.Fx 5.0
|
|
|
|
and should be deployed with appropriate caution.
|