netdev
[Top] [All Lists]

Re: rtnetlink interface state monitoring problems.

To: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
Subject: Re: rtnetlink interface state monitoring problems.
From: James Morris <jmorris@xxxxxxxxxxxxxxxx>
Date: Mon, 21 Oct 2002 23:46:24 +1000 (EST)
Cc: linux-kernel@xxxxxxxxxxxxxxx, <netdev@xxxxxxxxxxx>
In-reply-to: <27964.1035199084@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Mon, 21 Oct 2002, David Woodhouse wrote:

>  1. I appear to need CAP_NET_ADMIN to bind to the netlink groups which give
>       me this  information. I can poll for it just fine, but need 
>       elevated privs to be notified. Why is this, and is there a workaround?

Andi Kleen implemented a simple and effective workaround this for 2.4
which has gone into the tree (see netlink_set_nonroot() in rtnetlink.c).  

Another more complicated solution was partially developed for 2.5, but is
unlikely to make it in by Halloween.


- James
-- 
James Morris
<jmorris@xxxxxxxxxxxxxxxx>



<Prev in Thread] Current Thread [Next in Thread>