Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109436122
D29523.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
856 B
Referenced Files
None
Subscribers
None
D29523.diff
View Options
diff --git a/usr.sbin/traceroute6/traceroute6.c b/usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c
+++ b/usr.sbin/traceroute6/traceroute6.c
@@ -578,8 +578,6 @@
*/
switch (useproto) {
case IPPROTO_ICMPV6:
- sndsock = rcvsock;
- break;
case IPPROTO_NONE:
case IPPROTO_SCTP:
case IPPROTO_TCP:
@@ -928,7 +926,6 @@
* namespaces (e.g filesystem) is restricted (see capsicum(4)).
* We must connect(2) our socket before this point.
*/
-
if (caph_enter_casper() < 0) {
fprintf(stderr, "caph_enter_casper: %s\n", strerror(errno));
exit(1);
@@ -940,6 +937,12 @@
strerror(errno));
exit(1);
}
+ cap_rights_init(&rights, CAP_RECV);
+ if (caph_rights_limit(rcvsock, &rights) < 0) {
+ fprintf(stderr, "caph_rights_limit rcvsock: %s\n",
+ strerror(errno));
+ exit(1);
+ }
/*
* Main loop
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 6, 1:08 AM (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16484089
Default Alt Text
D29523.diff (856 B)
Attached To
Mode
D29523: traceroute6: Fix rights for rcvsock
Attached
Detach File
Event Timeline
Log In to Comment