summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2015-10-13 07:23:49 +0000
committerjmc <jmc@openbsd.org>2015-10-13 07:23:49 +0000
commit998450171f991096e72c5ab00c53b18272a1a6a5 (patch)
tree8830dc2c2c2b13eeaedc5bb2f0cee7172e1dd877 /lib/libc/sys
parentoffline queue is no longer user-writable, do not attempt resetting fchflags (diff)
downloadwireguard-openbsd-998450171f991096e72c5ab00c53b18272a1a6a5.tar.xz
wireguard-openbsd-998450171f991096e72c5ab00c53b18272a1a6a5.zip
new sentence, new line;
do not Xr self;
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/pledge.211
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2
index bb716a87aac..8c6297a4711 100644
--- a/lib/libc/sys/pledge.2
+++ b/lib/libc/sys/pledge.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pledge.2,v 1.5 2015/10/12 23:32:55 deraadt Exp $
+.\" $OpenBSD: pledge.2,v 1.6 2015/10/13 07:23:49 jmc 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 12 2015 $
+.Dd $Mdocdate: October 13 2015 $
.Dt PLEDGE 2
.Os
.Sh NAME
@@ -226,8 +226,9 @@ This subset is simply the combination of
and
.Va "rw" .
As a result, all the expected functionalities of libc
-stdio work. Use of "stdio" is recommended instead of "malloc rw", to
-better express the intent of the program.
+stdio work.
+Use of "stdio" is recommended instead of "malloc rw",
+to better express the intent of the program.
.It Va "rpath"
A number of system calls are allowed if they only cause
read-only effects on the filesystem:
@@ -436,7 +437,7 @@ Coupled with the
request, this allows a process to fork and execute another program.
The new program starts running without pledge active and hopefully
makes a new
-.Xr pledge 2 .
+.Fn pledge .
.It Va "prot_exec"
Allows the use of
.Dv PROT_EXEC