Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277680 - app-pda/synce-hal-0.13: missing synce-hal.conf in /etc/dbus-1/system.d/
Summary: app-pda/synce-hal-0.13: missing synce-hal.conf in /etc/dbus-1/system.d/
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo PDA project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 17:08 UTC by mipas
Modified: 2010-12-19 00:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
SynCE HAL conf file (org.freedesktop.Hal.Device.Synce.conf,722 bytes, text/plain)
2009-07-13 23:23 UTC, Iain Buchanan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mipas 2009-07-13 17:08:12 UTC
synce is not working correctly without synce-hal.conf. Dbus is rejecting messages - here is the error message from syslog:

Jul 13 18:42:38 gentoo dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.36" (uid=
0 pid=7521 comm="pls ") interface="org.freedesktop.Hal.Device.Synce" member="RequestConnection" error name="(unset)"
 requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2917 comm="/usr/sbin/hald --use-syslog --verbose=no 
"))

Solution is to put missing synce-hal.conf to /etc/dbus-1/system.d/ and restart dbus.

After this synce is working correctly:
Here is the synce-hal.conf:
oor@gentoo ~ $ cat /etc/dbus-1/system.d/synce-hal.conf 
<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- This configuration file specifies the required security policies
       for synce-hal to work. -->

  <!-- Allow anyone to invoke methods on the Synce interface -->
  <policy context="default">
    <allow send_destination="org.freedesktop.Hal"
	   send_interface="org.freedesktop.Hal.Device.Synce"/>

  </policy>

</busconfig>
toor@gentoo ~ $ 


Reproducible: Always

Steps to Reproduce:
1. emerge synce-hal
2. connect the PDA to usb port
3. pls (synce-pls)

Actual Results:  
Jul 13 18:42:38 gentoo dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.36" (uid=
0 pid=7521 comm="pls ") interface="org.freedesktop.Hal.Device.Synce" member="RequestConnection" error name="(unset)"
 requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2917 comm="/usr/sbin/hald --use-syslog --verbose=no 
"))

Expected Results:  
toor@gentoo ~ $ pls
Directory               2008-07-10 12:00:12  My Pictures/
Directory               2008-07-10 12:00:12  Templates/
Directory               2008-07-10 12:00:12  Personal/
Directory               2008-07-10 12:00:12  Business/
Directory               2008-07-10 12:00:12  My Music/
Directory               2008-07-10 12:00:12  My Ringtones/
Directory               2008-07-10 12:02:08  My Videos/
Directory               2008-07-10 12:02:10  UAContents/
Directory               2008-07-10 12:02:14  My Voices/
Directory               2008-08-20 16:42:18  Bluetooth Share/
...
...

please create new ebuild synce-hal-0.13-r1 with the included synce-hal.conf
Comment 1 Iain Buchanan 2009-07-13 23:22:01 UTC
Thanks for the report.

mescalinum: looks like I made my own /etc/dbus-1/system.d/org.freedesktop.Hal.Device.Synce.conf (attachment coming).  Slightly different, but I'm not a hal expert :)
Comment 2 Iain Buchanan 2009-07-13 23:23:30 UTC
Created attachment 197857 [details]
SynCE HAL conf file
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-12-19 00:23:43 UTC
Removed from tree (bug 340007 for future restoration).