HomeFreeBSD

traceroute6: Fix Capsicum rights for rcvsock

Description

traceroute6: Fix Capsicum rights for rcvsock

  • Always use distinct sockets for send and recv
  • Limit rights on the recv socket

For ICMP6 we were using the same socket for both send and receive, and
we limited rights on the socket such that it's impossible to receive
anything.

PR: 254623
Diagnosed by: Zhenlei Huang <zlei.huang@gmail.com>
Reviewed by: oshogbo
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D29523

Details

Provenance
markjAuthored on Apr 1 2021, 1:58 PM
Reviewer
oshogbo
Differential Revision
D29523: traceroute6: Fix rights for rcvsock
Parents
rG02f26e98c7f4: tcp: Add hash histogram output and validate bucket length accounting
Branches
Unknown
Tags
Unknown