this post was submitted on 18 Dec 2023
4 points (83.3% liked)

Operating System Development

297 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
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] deadbeef@lemmy.world 2 points 9 months ago (1 children)

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 9 months ago