public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* Removing clsact while eBPF program is still attached
@ 2023-02-18  9:22 Dropify Drop
  2023-02-18 18:40 ` Toke Høiland-Jørgensen
  0 siblings, 1 reply; 2+ messages in thread
From: Dropify Drop @ 2023-02-18  9:22 UTC (permalink / raw)
  To: bpf

Hi,
I am playing around with eBPF + TC and wrote some eBPF code to
intercept egress and ingress traffic (clsact qdisc) .
All works great but while the eBPF program is still attached I can via
command line remove the associated clsact qdisc (tc qdisc del dev
<interface> clsact) and the eBPF program no longer receives the
traffic. It is kind of expected but any root user can silently disable
it.

Is there any better approach?

eBPF program only allows traffic to/from some preconfigured IP & Ports.

Thanks & regard,
Dominic

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-18 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-18  9:22 Removing clsact while eBPF program is still attached Dropify Drop
2023-02-18 18:40 ` Toke Høiland-Jørgensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox