Geoclue provider requires root permissions

Leonid Yurchenko nocturne at qarea.com
Thu Mar 31 06:39:04 PDT 2011


Hi all.

(is you saw this already - sorry for repeating mail, but previous seems 
to be stuck somewhere)

I'm writing a geoclue provider that requires root permissions. In 
particular it requires access to wifi driver via wireless tools 
(initiate a scan). All is working perfectly when I start client 
application with sudo. But obviously I want a regular user to be able to 
use this provider without sudoing. How can I achieve this?

What I tried:
- Adding suexec bit to provider binary didn't worked, in this case 
client can't communicate with provider at all.
- Adding User=root to dbus service configuration. It seems to ignore 
this line for regular services.
- Prelaunching service at boot from root. Then user can connect to 
running instance. But this way is not suitable - I don't want my service 
to run always, only when it's needed.

Thanks,
Leonid.



More information about the GeoClue mailing list