hal/doc TODO,1.32,1.33

David Zeuthen david at freedesktop.org
Wed Jul 21 02:38:33 PDT 2004


Update of /cvs/hal/hal/doc
In directory pdx:/tmp/cvs-serv9668/doc

Modified Files:
	TODO 
Log Message:
2004-07-21  David Zeuthen  <david at fubar.dk>

	* doc/TODO: Added the TODO 'Rescan() method on HalDevice'.
	Added the TODO 'Privilege Management'.
	Put some more info on 'Locking of devices' and 'Power Management',
	name that HAL export generic methods on HalDevice.



Index: TODO
===================================================================
RCS file: /cvs/hal/hal/doc/TODO,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- TODO	21 Jul 2004 09:14:48 -0000	1.32
+++ TODO	21 Jul 2004 09:38:31 -0000	1.33
@@ -7,6 +7,47 @@
 updates this file to reflect it.
 
 ============================================================================
+* Rescan() method on HalDevice
+============================================================================
+
+The idea is that HAL exports a generic operation to 'rescan' a device
+where the semantics of this operation is highly dependent on the actual
+HalDevice. 
+
+For example, this is needed when we don't poll for media, so e.g. the
+semantics of the operation on devices of capability block where
+block.is_volume is FALSE is to poll for media (and note on Linux this
+is highly dependent on whether it's a legacy floppy drive, USB floppy
+drive, an optical drive or a cardreader; partitions or not, etc.
+
+If we support legacy serial ports it might mean 'search for a modem'.
+
+============================================================================
+* Privilege management
+============================================================================
+
+We need to ensure that non-root can only read the properties. This is
+very important to do before anyone starts shipping HAL in a stable
+distro.
+
+This poses an interesting question on how gnome-volume-manager
+works. g-v-m adds the capability content.photos to a volume if a DCIM/
+tree is found in the root. Perhaps HAL should take care of this? Another
+option is to use the GetUnixProcessID(), see below.
+
+Anyway, for this we'll need D-BUS 0.22 since the GetUnixProcessID() and
+GetUnixUser() only hit CVS some weeks ago. Ideally D-BUS should support
+policy for this, see
+
+ http://freedesktop.org/pipermail/dbus/2004-July/001309.html
+
+but this is not going to happen as it requires root. 
+
+Sigh. We can still do this, we've only have to maintain the policy
+ourselves in /etc/hal/hald.conf, e.g. say
+/usr/bin/gnome-volume-manager is allowed to do stuff. 
+
+============================================================================
 * Multi-function USB devices (davidz is working on this)
 ============================================================================
 
@@ -151,6 +192,8 @@
 
      http://freedesktop.org/pipermail/hal/2004-July/000579.html
 
+This should be exported as a generic Lock() method on the HalDevice.
+
 ============================================================================
 * Removal of class devices
 ============================================================================
@@ -198,7 +241,8 @@
 
  http://freedesktop.org/pipermail/hal/2004-July/000544.html
 
-about abstracting both ACPI and pmud.
+about abstracting both ACPI and pmud. Ideally we would also have Suspend()
+and Resume() methods on HalDevices.
 
 ============================================================================
 * Support for more bus-devices and class-devices




More information about the hal-commit mailing list