Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2006 11:39:24 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Markus Brueffer <markus@brueffer.de>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Netgraph: node and type list without root privileges
Message-ID:  <446A1C5C.5040105@elischer.org>
In-Reply-To: <200605161420.16557.markus@brueffer.de>
References:  <200605161420.16557.markus@brueffer.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Markus Brueffer wrote:

>Hi all,
>
>is it possible to somehow obtain a list of nodes of a specific type without 
>root privileges?
>
>Background: I need this in order to do autodetection of hci nodes (port of 
>kde-bluetooth and new libhci) from a regular user account.
>
>Thanks for your time,
>
>Markus
>
>  
>
no, as it takes an ng_socket, and the VERY FIRST thing that is done
when creating an ng_socket is:

        if (suser(td))
                return (EPERM);


There is no distiguishing between message types so once you can send a 
message
(how ngctl gets the info) you can do anything.. it's an "all or nothing" 
thing.

We COULD implement an net.graph.nodes  sysctl that dumps out the current 
graph however..
But it's require someone willing to spend the time to do it.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?446A1C5C.5040105>