* 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
* Re: Removing clsact while eBPF program is still attached
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
0 siblings, 0 replies; 2+ messages in thread
From: Toke Høiland-Jørgensen @ 2023-02-18 18:40 UTC (permalink / raw)
To: Dropify Drop, bpf
Dropify Drop <d.dropify@gmail.com> writes:
> 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.
Well, any root user can also down the interface or do, well, anything,
really, that's kinda the point of having root...
So, erm, don't give root access to people you don't trust not to mess up
your system? :)
-Toke
^ 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