diff options
| author | Jens Axboe <axboe@kernel.dk> | 2026-01-17 00:50:05 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-01-27 21:10:46 +0300 |
| commit | cff1c26b4223820431129696b45525e5928e6409 (patch) | |
| tree | ea5c121a8b097955159bb90412c464fb38bd0364 /include/uapi | |
| parent | d42eb05e60fea31de49897d63a1d73f933303bd4 (diff) | |
| download | linux-cff1c26b4223820431129696b45525e5928e6409.tar.xz | |
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>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/io_uring/bpf_filter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring/bpf_filter.h b/include/uapi/linux/io_uring/bpf_filter.h index 2d4d0e5743e4..4dbc89bbbf10 100644 --- a/include/uapi/linux/io_uring/bpf_filter.h +++ b/include/uapi/linux/io_uring/bpf_filter.h @@ -16,6 +16,13 @@ struct io_uring_bpf_ctx { __u8 sqe_flags; __u8 pdu_size; /* size of aux data for filter */ __u8 pad[5]; + union { + struct { + __u32 family; + __u32 type; + __u32 protocol; + } socket; + }; }; enum { |
