]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
traceroute6: Fix Capsicum rights for rcvsock
authorMark Johnston <markj@FreeBSD.org>
Thu, 1 Apr 2021 13:58:32 +0000 (09:58 -0400)
committerMark Johnston <markj@FreeBSD.org>
Thu, 1 Apr 2021 14:00:29 +0000 (10:00 -0400)
commitb8ae450f05e62a851f444edaf7db2506ff99aa37
treef00ca2079940b1ee68382bea608729b29c6a4f47
parent02f26e98c7f4d43d6bd077421286da455e069146
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
usr.sbin/traceroute6/traceroute6.c