diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2018-06-18 16:13:46 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2018-06-18 16:13:46 +0000 |
commit | d801d9541d10c6568476226b0e5a9f593bb1a332 (patch) | |
tree | b357f7acf51f8a7d32b1f131228f4d48b50971e4 /sbin | |
parent | 1f164ae6793e433f107ffec078559019e917add9 (diff) |
Pledge main process now that we have wroute.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/slaacd/slaacd.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sbin/slaacd/slaacd.c b/sbin/slaacd/slaacd.c index 8a405b5ca94..68934d122f7 100644 --- a/sbin/slaacd/slaacd.c +++ b/sbin/slaacd/slaacd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.c,v 1.22 2018/05/17 13:39:00 florian Exp $ */ +/* $OpenBSD: slaacd.c,v 1.23 2018/06/18 16:13:45 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser <florian@openbsd.org> @@ -320,11 +320,8 @@ main(int argc, char *argv[]) fatalx("control socket setup failed"); #endif /* SMALL */ -#if 0 - /* XXX ioctl SIOCAIFADDR_IN6 */ -BROKEN if (pledge("stdio cpath sendfd", NULL) == -1) + if (pledge("stdio cpath sendfd wroute", NULL) == -1) fatal("pledge"); -#endif main_imsg_compose_frontend_fd(IMSG_ICMP6SOCK, 0, icmp6sock); @@ -457,11 +454,8 @@ main_dispatch_frontend(int fd, short event, void *bula) switch (imsg.hdr.type) { case IMSG_STARTUP_DONE: -#if 0 - /* XXX ioctl SIOCAIFADDR_IN6 */ -BROKEN if (pledge("stdio cpath", NULL) == -1) + if (pledge("stdio cpath wroute", NULL) == -1) fatal("pledge"); -#endif break; #ifndef SMALL case IMSG_CTL_LOG_VERBOSE: |