diff options
author | deraadt <deraadt@openbsd.org> | 2015-10-10 22:11:37 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2015-10-10 22:11:37 +0000 |
commit | bc3fb1a1aadc9cad8d309fad5b319ec1cb1ca6d3 (patch) | |
tree | 9d3076abb00c8123d223ba4b255dbdae233675fe /usr.sbin/dvmrpctl | |
parent | Add a define for the invalid state, from mksh via Michael McConville. (diff) | |
download | wireguard-openbsd-bc3fb1a1aadc9cad8d309fad5b319ec1cb1ca6d3.tar.xz wireguard-openbsd-bc3fb1a1aadc9cad8d309fad5b319ec1cb1ca6d3.zip |
pledge "stdio route"; untested. this has the if_nametoindex() problem as
other *ctl programs using their daemon's log.c, and thus requires "route"
for now. we hope to solve that issue soon.
Diffstat (limited to 'usr.sbin/dvmrpctl')
-rw-r--r-- | usr.sbin/dvmrpctl/dvmrpctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/dvmrpctl/dvmrpctl.c b/usr.sbin/dvmrpctl/dvmrpctl.c index 1117eecc6ea..d0ed2d87b7e 100644 --- a/usr.sbin/dvmrpctl/dvmrpctl.c +++ b/usr.sbin/dvmrpctl/dvmrpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dvmrpctl.c,v 1.12 2015/09/27 17:29:45 stsp Exp $ */ +/* $OpenBSD: dvmrpctl.c,v 1.13 2015/10/10 22:11:37 deraadt Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -95,6 +95,9 @@ main(int argc, char *argv[]) if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) err(1, "connect: %s", DVMRPD_SOCKET); + if (pledge("stdio route", NULL) == -1) + err(1, "pledge"); + if ((ibuf = malloc(sizeof(struct imsgbuf))) == NULL) fatal(NULL); imsg_init(ibuf, ctl_sock); |