HomeFreeBSD

In in_pcbconnect_setup() jailed sockets are treated specially: if local
rS142207Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

In in_pcbconnect_setup() jailed sockets are treated specially: if local
address is not supplied, then jail IP is choosed and in_pcbbind() is called.
Since udp_output() does not save local addr after call to in_pcbconnect_setup(),
in_pcbbind() is called for each packet, and this is incorrect.

So, we shall treat jailed sockets specially in udp_output(), we will save
their local address.

This fixes a long standing bug with broken sendto() system call in jails.

PR: kern/26506
Reviewed by: rwatson
MFC after: 2 weeks

Details

Provenance
glebiusAuthored on
Parents
rS142206: In in_pcbconnect_setup() remove a check that route points at
Branches
Unknown
Tags
Unknown

Event Timeline