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