]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: net_sched: Disable attaching bpf qdisc to non root
authorAmery Hung <ameryhung@gmail.com>
Wed, 9 Apr 2025 21:46:02 +0000 (14:46 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 17 Apr 2025 17:54:40 +0000 (10:54 -0700)
commite582778f023b4c9e608b5cca135f17f62b0cd115
treea337a59420aa4de41bc9b628a661edbf614b63f3
parent544e0a1f1e56de5a28251c188aa8f78fe50b31c9
bpf: net_sched: Disable attaching bpf qdisc to non root

Do not allow users to attach bpf qdiscs to classful qdiscs. This is to
prevent accidentally breaking existings classful qdiscs if they rely on
some data in the child qdisc. This restriction can potentially be lifted
in the future. Note that, we still allow bpf qdisc to be attached to mq.

Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://patch.msgid.link/20250409214606.2000194-7-ameryhung@gmail.com
net/sched/bpf_qdisc.c