artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52c15c8
)
pledge "stdio inet route"; ok deraadt@
author
jca
<jca@openbsd.org>
Sun, 25 Oct 2015 21:31:58 +0000
(21:31 +0000)
committer
jca
<jca@openbsd.org>
Sun, 25 Oct 2015 21:31:58 +0000
(21:31 +0000)
usr.sbin/rtadvd/rtadvd.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rtadvd/rtadvd.c
b/usr.sbin/rtadvd/rtadvd.c
index
1f3e990
..
a24f788
100644
(file)
--- a/
usr.sbin/rtadvd/rtadvd.c
+++ b/
usr.sbin/rtadvd/rtadvd.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rtadvd.c,v 1.5
6 2015/10/25 21:23:42
jca Exp $ */
+/* $OpenBSD: rtadvd.c,v 1.5
7 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;