summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorsemarie <semarie@openbsd.org>2016-04-12 12:47:46 +0000
committersemarie <semarie@openbsd.org>2016-04-12 12:47:46 +0000
commit990b7c4f2524686789a80db3f26fb0b333e6c322 (patch)
treef0c513540053b4b309bf9a9799e63dfbcc9a7328 /lib/libc
parentshuffle attach so we read chip capabilities before operating on it (diff)
downloadwireguard-openbsd-990b7c4f2524686789a80db3f26fb0b333e6c322.tar.xz
wireguard-openbsd-990b7c4f2524686789a80db3f26fb0b333e6c322.zip
documents "route" promise
initial diff from Rob Pierce rob ! 2keys. ca with some enhancements from jmc@, schwarze@ and me ok jmc@ schwarze@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/pledge.226
1 files changed, 23 insertions, 3 deletions
diff --git a/lib/libc/sys/pledge.2 b/lib/libc/sys/pledge.2
index 95e7896d1e7..5500ceaea7b 100644
--- a/lib/libc/sys/pledge.2
+++ b/lib/libc/sys/pledge.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pledge.2,v 1.28 2016/04/10 18:52:07 tb Exp $
+.\" $OpenBSD: pledge.2,v 1.29 2016/04/12 12:47:46 semarie 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: April 10 2016 $
+.Dd $Mdocdate: April 12 2016 $
.Dt PLEDGE 2
.Os
.Sh NAME
@@ -80,7 +80,8 @@ Only the
and
.Dv FIONBIO
operations are allowed by default.
-Use of the "tty" and "ioctl" promises receive more ioctl requests.
+The "audio", "ioctl", "pf", "route", and "tty" promises permit more ioctl
+requests.
.Pp
.It Xr chmod 2
.It Xr fchmod 2
@@ -495,6 +496,25 @@ process:
.Xr setrlimit 2 ,
.Xr getpriority 2 ,
.Xr setpriority 2 .
+.It Va "route"
+Allows a subset of read-only
+.Xr ioctl 2
+operations on network interfaces:
+.Pp
+.Dv SIOCGIFADDR ,
+.Dv SIOCGIFFLAGS ,
+.Dv SIOCGIFMETRIC ,
+.Dv SIOCGIFGMEMB ,
+.Dv SIOCGIFRDOMAIN ,
+.Dv SIOCGIFDSTADDR_IN6 ,
+.Dv SIOCGIFNETMASK_IN6 ,
+.Dv SIOCGNBRINFO_IN6 ,
+.Dv SIOCGIFINFO_IN6 ,
+.Dv SIOCGIFMEDIA .
+.Pp
+It also allows read access to some
+.Xr sysctl 3
+nodes for inspection of routing table.
.It Va "pf"
Allows a subset of
.Xr ioctl 2