Is there any way to receive interface/link state changes like down and
up, address change and so on without root privilege ?

I looked into ripd (kroute.c) and noticed it uses a raw socket with
domain AF_ROUTE, so it can receive all the RTM_* messages.

I understand ripd needs root privilege in order to change routes and
family, don't need that, just want to be updated when some event
occurs, route change, link state and so on...

To my knowledge any raw socket also requires root privilege, therefore
I can't use AF_ROUTE to receive the changes.

Is there any other interface to the kernel ?
If so, is there any header or manpage that explain those interfaces ?
I'm basically grepping usr/include and reading ripd code.

If there isn't another way I'll end up doing as ripd did for the
privilege separation.

Thanks.
-- 
Christiano Farina HAESBAERT
Do NOT send me html mail.

Reply via email to