summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2006-07-26Update for 0.5.7.1HAL_0_5_7_1hal-0_5_7-branchDavid Zeuthen3-5/+32
2006-07-26Backport this fix done by Kay Sievers <kay.sievers@vrfy.org> to fix sysfsDavid Zeuthen3-30/+102
changes post Linux 2.6.17: (hotplug_event_begin_sysfs): Prepare for new class devices showing up in /sys/devices instead of /sys/class. Bump from 256 to 512 as the kernel emits longer sysfs paths post Linux 2.6.17. And udev now also uses 512.
2006-07-26Bump version for upcoming 0.5.7.1 maintenance releaseDavid Zeuthen2-2/+6
2006-02-24add cryptsetup-luks depHAL_0_5_7David Zeuthen1-9/+10
2006-02-24forgot to add requirementsDavid Zeuthen1-0/+12
2006-02-24Update for 0.5.7David Zeuthen2-0/+56
2006-02-24Patch from Sjoerd Simons <sjoerd@luon.net>. It adds a save PATH to theDavid Zeuthen4-4/+21
enviroment by default (hald should never ever specify need to add a path to the enviroment send to the runner, so we're not overriding anything...).
2006-02-24Actually remove this fileDavid Zeuthen2-55/+4
2006-02-24Add some useful debugging on errorsDavid Zeuthen3-12/+31
Sleep three seconds on error to avoid attacks for cracking the password
2006-02-23Add the bustype for ADB keyboards so that the keyboard addon is lauched forRichard Hughes2-2/+10
my iBook clamshell. This means that the power button now emits ButtonPressed conditions and the machine thus works with gnome-power-manager.
2006-02-23Patch from Artem Kachitchkine <Artem.Kachitchkin@Sun.COM>, slightly tweakedDavid Zeuthen3-5/+97
by myself. Teach libhal-storage about Blu-ray and HD DVD.
2006-02-22Attached patch makes the addon-pmu work in blocking mode (thus openDavid Zeuthen2-23/+12
/dev/adb blocking). I've been running a little daemon on my system for some years that also does this without any problems, so it should be fine and makes the code somewhat nice imho. I've also removed some old dead code, don't think there is much use in keeping it around right? Patch from Sjoerd Simons <sjoerd@luon.net>.
2006-02-22Patch from Artem Kachitchkine <Artem.Kachitchkin@Sun.COM>. Add Blu-ray andDavid Zeuthen5-37/+290
HD DVD to storage.cdrom and volume.disc.type per the latest MMC-5 draft. See Table 87 - Profile List in http://www.t10.org/drafts.htm#mmc5 . Probe-volume should do the right thing, but probe-storage needs fixing (noted in FIXME comment).
2006-02-22Patch from Martin Pitt <martin@piware.de>.David Zeuthen6-40/+83
Take an additional parameter "keep_auxgroups" Add some comment that we *could* drop privileges provided we were in the right group Drop privileges Pass right parameter to drop_privileges Drop privileges
2006-02-22Allow fmask and dmask for vfatDavid Zeuthen2-0/+7
2006-02-22Export prototypes for libhal_volume_crypto_get_clear_volume_udi andDavid Zeuthen3-0/+61
libhal_volume_crypto_get_backing_volume_udi New function (libhal_volume_crypto_get_backing_volume_udi): New function fix my commit entry for 2006-02-19 - missed changes to hald/hald_runner.c
2006-02-21Sync volume_id with udev version.Kay Sievers32-109/+145
2006-02-20New function (hald_exec_method_do_invocation): Throw the exceptionDavid Zeuthen3-6/+57
org.freedesktop.Hal.NoSuchDevice if the device went away while we were in a queue. Move freeing of the MethodInvocation structure into a separate function and require callers to call this. Return FALSE if the device wasn't there. (hald_exec_method_enqueue): Free the method invocation (hald_exec_method_process_queue): Handle when device wasn't there and process the next element instead (local_server_message_handler): Comment out some debug information
2006-02-20Add hald-addon-keyboard to cvsignore.Kay Sievers1-0/+1
2006-02-19While surprise removal of hotpluggable fixed disks with crypted volumesDavid Zeuthen2-0/+88
worked fine, it didn't work so well for crypted volumes on removable media. This patch should fix it. New function (unmount_childs): If device is a crypto device, unmount all cleartext devices and tear down the crypt link.
2006-02-18add handler for omnibook displays.Richard Hughes4-6/+42
Add omnibook support. don't prepend the acpi/ here as the new omnibook isn't under /proc/acpi. See http://bugzilla.gnome.org/show_bug.cgi?id=331458 for details.
2006-02-18Move hal-system-power-pmu from bin to libexec as it's only meant to beRichard Hughes5-6/+30
called by hal, not a user. Change the path of hal-system-power-pmu as libexec is now in our path and we are not installed in scripts anymore. Add the sleep command for hal-system-power-pmu so that suspend works on ppc hardware.
2006-02-18Remeber to free structures; reported by Brendan Creane <bcreane@yahoo.com>.David Zeuthen2-0/+10
2006-02-18Don't initgroups as we don't need privileges for now. Patch from MartinDavid Zeuthen2-5/+5
Pitt <martin@piware.de>.
2006-02-16Forgot to set uuid, fsversion so libhal_volume_get_uuid(), get_fsversion()David Zeuthen2-1/+3
would always return NULL.
2006-02-16Forgot to set uuid so libhal_volume_get_uuid() would always return NULL.David Zeuthen2-0/+6
2006-02-14Refuse to mount a volume if it's already listed in /etc/fstab - includesDavid Zeuthen2-0/+36
checking symlinks. Patch from Ludwig Nussel <ludwig.nussel@suse.de>.
2006-02-14To avoid a race of several processes invoking methods at the same time weDavid Zeuthen2-7/+122
now maintain a queue of method calls per-device. One very real example of this is gnome-mount when setting up crypto devices; after Crypto.Setup() gnome-mount waits for the cleartext block device and attempts to mount it; meanwhile g-v-m sees the cleartext block device too and attempts to mount too. Since mounting is a relatively slow operation both methods are executed at the same time and we end up with two mounts. This patch fixes this problem.
2006-02-14Remove hal-luks-remove on info.callouts.remove on successful teardownDavid Zeuthen4-1/+70
Throw SetupPasswordError instead of just SetupError when cryptsetup is failing - used to ask for password again if the one from e.g. the keyring didn't work. New function (hald_dbus_filter_handle_methods): Handle StringListRemove
2006-02-13fix mapping system.formfactor from smbiosDanny Kukawka2-2/+7
2006-02-13Revert patch from Danny that adds mounts options for ntfsDavid Zeuthen3-8/+9
Also allow comma "," as a valid character in a mount point
2006-02-13Fixed problems with usage of dbus_error within a for-block. Need to be sureDanny Kukawka3-1/+21
that the error is empty and initialised for each usage. If not we get potentially error messages from dbus. :
2006-02-13Refuse to setup the device if it's already setup onceDavid Zeuthen2-0/+11
2006-02-13Don't generate tools/hal-luks-remove.in, tools/hal-luks-setup.inDavid Zeuthen9-66/+141
Also export Teardown method Remove, just use hardcoded paths New file for tearing down the mapping Use cryptsetup rather than luks-setup, add to CVS Use cryptsetup rather than luks-setup, add to CVS Add hal-luks-teardown
2006-02-13Fixup this function as it didn't work at all. Replace invalid charactersDavid Zeuthen2-3/+12
with '_' instead of '?' as the latter is not allowed as a mountpoint.
2006-02-13fix typoDavid Zeuthen1-1/+1
2006-02-13Use [:alnum:] and [:space:] instead of a-zA-Z0-9 so we support mount pointsDavid Zeuthen4-34/+72
like "foobar der æøå サイトの". Set LANG to en_US.UTF-8 to get bash to do this. Also allow - in GIVEN_MOUNTOPTIONS (Reported by Jeffrey Stedfast <fejj@novell.com>) in order to get iocharset= to work. Make this work for mountpoints with spaces in them Also remove info.hal_mount properties. (blockdev_generate_add_hotplug_event): For Reprobe, pass the model, vendor, serial and firmware rev.
2006-02-12Add tools/hal-system-storage-cleanup-mountpointDavid Zeuthen4-3/+70
New file Clean up mount point if we can see it was created by hal
2006-02-12Attempt to use volume.mount_point if we cannot findDavid Zeuthen11-149/+208
info.hal_mount.created_mount_point Export prototype for new function libhal_ctx_get_dbus_connection() New function Use a the Unmount() hal method to lazy unmount Ugh ugh ugh.. clear buffer before receiving data from udev.. we didn't use to do this and we got all sorts of weird side-effects since we'd for instance pick up DEVNAME='/dev/sdb' and _then_ DEVNAME='/dev/sda1' for /sys/block/sdb.. This was because this data was left in the buffer from the old run. It now appears to work.. New function, pass end_token to hal_util_callout_device_remove() (force_unmount): Use the Unmount method call to lazy unmount, thus making sure we don't block (hotplug_event_begin_remove_blockdev): Pass end_token to force_unmount and let that function invoke hal_util_callout_device_remove() Make this work for helpers using a direct connection to hald (hald_dbus_filter_handle_methods): Pass local_interface to hald_exec_method Update to use 'pwd' just like run-hald.sh was updated
2006-02-10update generated htmlDavid Zeuthen1-1036/+11130
2006-02-10only allow the user who mounted the volume to unmount it (also allow uidDavid Zeuthen5-8/+29
0). Use properties stored on hal to figure out mount location. Don't advertise flush as a valid option as it is not upstream (SUSE guys: you need to patch hal yourself until this is in an upstream kernel version that a hal release can depend on)
2006-02-10Allow passing file system type for non-pollable drives. This is needed toDavid Zeuthen2-8/+19
mount Zip disks as e.g. 'mount /dev/hdd4 /media/foo' fails but 'mount -t vfat /dev/hdd4 /media/foo' works.
2006-02-10Use new property on the hal device object to figure out where hal mountedDavid Zeuthen4-9/+99
the device. This also ensures we only unmount stuff that we mounted ourselves ... where we = the hal mount/unmount methods. Also only allow the user who mounted the volume to unmount it (also allow uid 0). Allow mounting of drives we don't poll. Export mount point and what uid mounted it as properties on the hal device object Fix up detection of blank and audio discs for the purpose of adding Eject methods. Export Mount, Unmount and Eject methods on drives we don't poll. Give some leeway with what mount options we support.
2006-02-09Ugh, make sure to launch hald-addon-storage if appropriateDavid Zeuthen2-1/+10
2006-02-09Fix lockup for ATAPI Zip drives as we pass end_token to the functionDavid Zeuthen2-1/+10
add_blockdev_probing_helper_done() in the wrong position.
2006-02-09actually commit this fileDavid Zeuthen1-0/+14
2006-02-09Add KEY_POWER -> "power"David Zeuthen2-1/+6
2006-02-09Print out some useful debug informationDavid Zeuthen7-11141/+1063
Don't set button.type or button.has_state as these are merged from the fdi file. Use absolute paths in HALD_RUNNER_PATH and PATH cuz otherwise helpers won't get invoked... Add 10-keyboard-policy.fdi Forgot to add file. Also from Matthew Garrett <mjg59@srcf.ucam.org>. Tweak file to merge button.type and button.has_state instead of setting
2006-02-08Patch from Matthew Garrett <mjg59@srcf.ucam.org>.David Zeuthen5-3/+303
Two patches attached: 1) Changes the ACPI addon to report the type of button pressed as well as the fact that a button has been pressed. 2) Adds a keyboard addon. The included fdi file will bind it to anything that has type input.keyboard. It adds the capability "button" to the keyboard devices, and on any keypress checks the key against a table. If the key is found there, a ButtonPressed event is generated with the name of the key in the details field (one exception - KEY_SUSPEND is given the name "hibernate"). There's a couple of extra features that could be added (export a list of the available keys, for instance - not very helpful on PS/2, but useful on USB), but could these be applied as is for now? Move drop_privileges here so other code can use it too. Add build rules for hald-addon-keybaord Also send button.type as part of the event New file. Also set button.type to "" and button.has_state to FALSE
2006-02-08The attached patch lets hal listen for input devices that are of typeDavid Zeuthen2-0/+8
BUS_HOST. These are pieces of built-in hardware, so won't be hotpluggable. Patch from Matthew Garrett <mjg59@srcf.ucam.org>.