dbus policy user setting

Alban Crequy alban.crequy at collabora.co.uk
Tue Oct 26 03:22:35 PDT 2010


Le Tue, 26 Oct 2010 18:30:19 +0900,
"Raghavendra. S" <raghavendra.akkasali at gmail.com> a écrit :

> Hi,
> 
>   In process using dbus I could see following lines in config file.
> Becuase of this if other user sends some request, AccessDenied is
> occuring.
> 
> <busconfig>
>     <policy user="root">
> 
> 
> Is there a way to allow everyone?

Try this one: <allow user="*"/>

For debugging purpose, I sometimes disable the security:

  <policy context="default">
    <!-- Allow everything to be sent -->
    <allow send_destination="*" eavesdrop="true"/>
    <!-- Allow everything to be received -->
    <allow eavesdrop="true"/>
    <!-- Allow anyone to own anything -->
    <allow own="*"/>
    <!-- XXX: Allow all users to connect -->
    <allow user="*"/>
  </policy>

Regards,

Alban


More information about the dbus mailing list