summaryrefslogtreecommitdiff
path: root/lib/libc/sys/pledge.2
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2015-10-12 01:17:09 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2015-10-12 01:17:09 +0000
commit82ae1400b34ee4d3ab073f9db09bba8f615ff666 (patch)
tree50e753aee369c52fa93ec81d6b52a81fe482ce47 /lib/libc/sys/pledge.2
parent850ce678bf2be8614d1f079c7c09dc268025fbf9 (diff)
make description of ERRORS more complete;
diff from Benny Lofgren <bl dash lists at lofgren dot biz>; ok nicm@
Diffstat (limited to 'lib/libc/sys/pledge.2')
-rw-r--r--lib/libc/sys/pledge.215
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2
index 578f3e4a515..3f08aa86a8d 100644
--- a/lib/libc/sys/pledge.2
+++ b/lib/libc/sys/pledge.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pledge.2,v 1.1 2015/10/09 01:24:57 deraadt Exp $
+.\" $OpenBSD: pledge.2,v 1.2 2015/10/12 01:17:08 schwarze Exp $
.\"
.\" Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 9 2015 $
+.Dd $Mdocdate: October 12 2015 $
.Dt PLEDGE 2
.Os
.Sh NAME
@@ -424,15 +424,22 @@ will fail if:
.Bl -tag -width Er
.It Bq Er EFAULT
.Fa paths
+or one of its elements, or
+.Fa request
points outside the process's allocated address space.
+.It Bq Er EINVAL
+.Ar request
+is malformed or contains invalid keywords.
.It Bq Er ENAMETOOLONG
An element of
.Fa paths
-is too large, or prepending
+is too large, prepending
.Fa cwd
to it would exceed
.Dv PATH_MAX
-bytes.
+bytes, or
+.Fa request
+is too long.
.It Bq Er EPERM
This process is attempting to increase permissions.
.It Bq Er E2BIG