GnomeMount

Differences between revisions 1 and 2
Revision 1 as of 2006-06-22 15:59:28
Size: 3233
Editor: ALagny-109-1-9-136
Comment: initial spec
Revision 2 as of 2007-01-02 19:14:11
Size: 2778
Editor: kotnet-149
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
The changes in this specification affect the handling of removable devices in Gnome and XFCE. The changes in this specification affect the handling of removable devices in Gnome.
Line 30: Line 30:
 * Change gnome-mount to make it not depend on any Gnome libraries which are inappropriate for XFCE.
* This will essentially deprecate pmount for the Gnome and XFCE use case.
 * This will essentially deprecate pmount for the Gnome use case.
Line 45: Line 44:
=== gnome-mount ===

The only Gnome-specific part in gnome-mount which is not appropriate for XFCE is the Gnome password input dialog. This is already marked as deprecated in the Gnome API, since it is about to be moved to GTK. In case it does not happen soon, we need to replace it with our own implementation if XFCE adopts it.

Summary

gnome-mount is a relatively new addition to the Utopia stack. It provides users with a nice GUI to configure mount options, consistently handle encrypted devices, and so on. Thus it replaces the clumsy HAL fdi policies for mount options and can also replace the hideous pmount hacks in g-v-m and pmount with something that actually works smoothly.

Rationale

gnome-mount and the hal mount backend are used by upstream by default now, they did not accept our pmount-centric solution. Thus Gnome has no support for mount policies and only little support for encrypted devices in Dapper.

Use cases

  • Joe keeps his music and video collection on a USB hard disk and wants other users to access it as well. In Dapper, VFAT partitions on USB devices are always mounted with umask 077, and there is no GUI way to change this.
  • Martin carries his GPG and SSH keys on an encrypted USB stick partition. In dapper, the encrypted partition is automatically mounted (after asking for the passphrase), but the device is not integrated into HAL at all, which means that you cannot assign it to a label or configure mount policy, and the user interface sees a confusing spare dummy drive.

Scope

The changes in this specification affect the handling of removable devices in Gnome.

Design

  • Change gnome-volume-manager and gnome-vfs2 to use gnome-mount instead of pmount-hal.

  • Fix the hal mount backend to do the same rigid policy checks than pmount currently does.
  • This will essentially deprecate pmount for the Gnome use case.

Implementation

hal

Right now, the hal mount backend (which runs as root) queries hald (which runs as user haldaemon) for attributes and decides whether or not to allow mounting. This does not fit into the agreed-upon trust model of hal, that's why we disabled this backend in dapper. The backend needs to be changed to do all policy checks on its own; the current pmount code will be used as a model for policy checks, and preferably we will also borrow code from it.

Upstream would welcome a rewrite, he just lacks time to do it.

gnome-vfs2, gnome-volume-manager

Remove our current patches to use pmount, remove luks patch from g-v-m. Upstream already defaults to using gnome-mount.

Data preservation and migration

Since until dapper we do not have any user policy settings, no data needs to be migrated.


CategorySpec

GnomeMount (last edited 2008-08-06 16:15:17 by localhost)