HomeFreeBSD

pf: clean up pflow sockets on jail removal

Description

pf: clean up pflow sockets on jail removal

pflow opens sockets in the kernel to transmit netflow information.
If this is done in a (vnet) jail these sockets end up preventing the removal of
the jail. The VNET_SYSUNINIT() vnet_pflowdetach() function doesn't get called,
but that's the function that would remove the sockets.

Install a callback on the PR_METHOD_REMOVE jail callback and close the sockets
there. This ensures that the jail can get cleaned up.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D47545

Details

Provenance
kpAuthored on Mon, Nov 18, 10:06 AM
Differential Revision
D47545: pf: clean up pflow sockets on jail removal
Parents
rG43778a593f92: stress2: Added zfs test scenarios
Branches
Unknown
Tags
Unknown