HomeFreeBSD

ifnet: Detach BPF descriptors on interface vmove event

Description

ifnet: Detach BPF descriptors on interface vmove event

When an interface is moving to/from a vnet jail, it may still have BPF
descriptors attached. The userland (e.g. tcpdump) does not get noticed
that the interface is departing and still opens BPF descriptors thus
may result in leaking sensitive traffic (e.g. an interface is moved
back to parent jail but a user is still sniffing traffic over it in
the child jail).

Detach BPF descriptors so that the userland will be signaled.

Reviewed by: ae
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D45727

Details

Provenance
zleiAuthored on Tue, Feb 4, 3:04 PM
Reviewer
ae
Differential Revision
D45727: bpf: Detach descriptors on interface vmove event
Parents
rGbb0348a17974: ifnet: Make if_detach_internal() and if_vmove() void
Branches
Unknown
Tags
Unknown