summaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-10-25 21:31:59 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-10-25 21:31:59 +0000
commit21dbfbf990c0c63005c32110aeff460f42fe5566 (patch)
tree72da94bed4d333823e283ee2dcf812c6cc24e67f /usr.sbin/rtadvd
parentfe1177dcded2e1730a870dcb36c2987e5a663e95 (diff)
pledge "stdio inet route"; ok deraadt@
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r--usr.sbin/rtadvd/rtadvd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 1f3e9900a62..a24f7881262 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtadvd.c,v 1.56 2015/10/25 21:23:42 jca Exp $ */
+/* $OpenBSD: rtadvd.c,v 1.57 2015/10/25 21:31:58 jca Exp $ */
/* $KAME: rtadvd.c,v 1.66 2002/05/29 14:18:36 itojun Exp $ */
/*
@@ -238,6 +238,9 @@ main(argc, argv)
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid))
fatal("cannot drop privileges");
+ if (pledge("stdio inet route", NULL) == -1)
+ err(1, "pledge");
+
npfd = 1;
pfd[0].fd = sock;
pfd[0].events = POLLIN;