4
submitted 8 months ago* (last edited 8 months ago) by kashara@lemmy.zip to c/osdev@programming.dev

Can eBPF be used to modify the list of WiFi networks visible to the user via NetworkManager? Hide some of them, add or modify info of the others....

Or even better, modify it on yet the lower level such that any application that polls the list via system API would receive a modified list.

The is about eBPF only

top 2 comments
sorted by: hot top controversial new old
[-] deadbeef@lemmy.world 2 points 8 months ago

It seems to be plausible, I'd guess you need to use XDP or something similar to it to drop/alter 80211 packets at the data layer.

https://github.com/SIOTLAB/FLIP/tree/master This may be a good place to start

Alternatively netlink could be another route to research https://www.kernel.org/doc/html/next/userspace-api/netlink/intro.html It seems this is a way the kernel talks to userspace networking applications like iw im not sure about NetworkManager in particular.

It's probably more effort than worth it doing this through ebpf is my two cents, what is this for?

[-] kashara@lemmy.zip 1 points 8 months ago
this post was submitted on 18 Dec 2023
4 points (83.3% liked)

Operating System Development

283 readers
1 users here now

A place to discuss the world of operating system development. Open for all architectures.

Rules

Resources

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS