HomeFreeBSD

traceroute6: fix capabilities for the rcv socket

Description

traceroute6: fix capabilities for the rcv socket

On the receive socket, recvmsg() and poll()/select() is called.
Therefore, CAP_EVENT is needed in addition to CAP_RECV..

While there, check the socket for readbility before calling recvmsg().

Reviewed by: markj@
MFC after: 3 days
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D36878

Details

Provenance
tuexenAuthored on Oct 4 2022, 9:34 PM
Differential Revision
D36878: Fix traceroute6
Parents
rGb958b862b1f4: netlink: make it working without INET6
Branches
Unknown
Tags
Unknown