Skip site navigation (1)Skip section navigation (2)
Date:      Thu,  2 Nov 2006 19:08:09 +0100 (CET)
From:      Niko <c.r.n.a@wanadoo.fr>
To:        freebsd-gnome@freebsd.org
Subject:   Cannot mount removable media when using HAL
Message-ID:  <23384452.67081162490889159.JavaMail.www@wwinf1531>

next in thread | raw e-mail | index | archive | help
Hi !

To use hal for automounting your device, replace the text in the file 
/usr/local/share/hal/dist/hal.conf

by this :

<!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 the HAL to work. -->

 <!-- Only root or user haldaemon can own the HAL service -->
 <policy user="haldaemon">
   <allow own="org.freedesktop.Hal"/>
 </policy>
 <policy user="root">
   <allow own="org.freedesktop.Hal"/>
 </policy>

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

   <allow receive_interface="org.freedesktop.Hal.Manager"
          receive_sender="org.freedesktop.Hal"/>
   <allow receive_interface="org.freedesktop.Hal.Device"
          receive_sender="org.freedesktop.Hal"/>
 </policy>

 <!-- Default policy for the exported interfaces -->
 <policy context="default">
   <deny 
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
   <deny send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
   <deny send_interface="org.freedesktop.Hal.Device.Volume"/>
   <deny send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
 </policy>

 <!-- This will not work if pam_console support is not enabled -->
 <policy at_console="true">
   <allow 
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
   <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
   <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
   <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
 </policy>

 <!-- You can change this to a more suitable user, or make per-group -->
 <policy group="operator">
   <allow 
send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
   <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
   <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
   <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
 </policy>

</busconfig>

does it work ?
Good luck.

Nicolas..




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23384452.67081162490889159.JavaMail.www>