diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2015-10-10 00:19:53 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2015-10-10 00:19:53 +0000 |
commit | c52e32d046bb803bd5c80fc5b07536ad1ac69c85 (patch) | |
tree | 84bfd97c8580227d1f2b0b9fb6f6f1931f10c659 | |
parent | c868cbebbf078cf2fe2d961589d30763845f1690 (diff) |
pledge("stdio route") needed here, because ipv6
ok deraadt@
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index d6fa077ba43..531bc2a6916 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.40 2015/09/27 17:31:50 stsp Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.41 2015/10/10 00:19:52 benno Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -124,6 +124,9 @@ main(int argc, char *argv[]) if (connect(ctl_sock, (struct sockaddr *)&sun, sizeof(sun)) == -1) err(1, "connect: %s", sockname); + if (pledge("stdio route", NULL) == -1) + err(1, "pledge"); + if ((ibuf = malloc(sizeof(struct imsgbuf))) == NULL) err(1, NULL); imsg_init(ibuf, ctl_sock); |