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
Differential Revision: https://reviews.freebsd.org/D29523

(cherry picked from commit b8ae450f05e62a851f444edaf7db2506ff99aa37)

Details

Provenance
markjAuthored on Apr 1 2021, 1:58 PM
Reviewer
oshogbo
Differential Revision
D29523: traceroute6: Fix rights for rcvsock
Parents
rG95a466b20d92: VOP_BMAP(9): Remove obsolete comma
Branches
Unknown
Tags
Unknown