I understand that Netlink is a modern and proper way to link the kernel and user space on Linux.
I have a kernel module that needs to be configured, so I use Netlink to talk to the user space application.
Everything works wonders, but it seems to me that any user can talk with my module. I could block the application using permissions, etc., But the project is Open Source, so any user can easily compile the application for user space. Ergo, any user can configure my kernel. And this is not very good with me.
I seem to be missing something very important here, but the Netlink documentation I find is all about how to make it work, not how it works in the real world.
How can I restrict access to a Netlink socket? If this is not possible, what else can be done about this?
source share