]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/net: allow filtering on IORING_OP_SOCKET data
authorJens Axboe <axboe@kernel.dk>
Fri, 16 Jan 2026 21:50:05 +0000 (14:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Jan 2026 18:10:46 +0000 (11:10 -0700)
commitcff1c26b4223820431129696b45525e5928e6409
treeea5c121a8b097955159bb90412c464fb38bd0364
parentd42eb05e60fea31de49897d63a1d73f933303bd4
io_uring/net: allow filtering on IORING_OP_SOCKET data

Example population method for the BPF based opcode filtering. This
exposes the socket family, type, and protocol to a registered BPF
filter. This in turn enables the filter to make decisions based on
what was passed in to the IORING_OP_SOCKET request type.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring/bpf_filter.h
io_uring/bpf_filter.c
io_uring/net.c
io_uring/net.h