summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-20 18:47:21 +0000
committerderaadt <deraadt@openbsd.org>2015-10-20 18:47:21 +0000
commitc169fbf63001fd1b7df75e315d7fdfdba9b5ca98 (patch)
treee2c98cfb74126a7385fd482d948481028efbb206
parentDocument SOCK_DNS flag (diff)
downloadwireguard-openbsd-c169fbf63001fd1b7df75e315d7fdfdba9b5ca98.tar.xz
wireguard-openbsd-c169fbf63001fd1b7df75e315d7fdfdba9b5ca98.zip
believe this will work with "stdio rpath wpath cpath inet" now that
SO_RCVBUF is permitted. It may even be possible to lose the "inet" a bit later in the code. Anyone want to test?
-rw-r--r--usr.sbin/rmt/rmt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c
index aebaac9d513..a8a9d9cebb7 100644
--- a/usr.sbin/rmt/rmt.c
+++ b/usr.sbin/rmt/rmt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rmt.c,v 1.17 2015/10/16 14:13:52 deraadt Exp $ */
+/* $OpenBSD: rmt.c,v 1.18 2015/10/20 18:47:21 deraadt Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -82,6 +82,9 @@ main(int argc, char *argv[])
char *devp;
size_t dirlen;
+ if (pledge("stdio rpath wpath cpath inet", NULL) == -1)
+ err(1, "pledge");
+
while ((ch = getopt(argc, argv, "d:rw")) != -1) {
switch (ch) {
case 'd':