summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-01-21fix policy for org.freedesktop.Hal.Device.KillSwitchDanny Kukawka1-0/+2
Fixed policy for org.freedesktop.Hal.Device.KillSwitch by adding receive_interface and receive_sender="org.freedesktop.Hal".
2009-01-21put policy rules in alphabetical orderDanny Kukawka1-7/+10
Put the policy rules in alphabetical order.
2009-01-21remove second policy context="default" blockDanny Kukawka1-9/+0
Removed second <policy context="default"> block, it makes no sense to have the same default context two times.
2009-01-21remove policy rule for org.freedesktop.Hal.Device.VideoAdapterPMDanny Kukawka1-1/+0
Removed policy rule for org.freedesktop.Hal.Device.VideoAdapterPM, there is no such interface in HAL (anymore?).
2009-01-21Merge branch 'master' of ssh://dkukawka@git.freedesktop.org/git/halDanny Kukawka1-0/+3
2009-01-21fix spec due to path/filename changes with actual PolicyKitDanny Kukawka1-1/+1
Fixed spec due to path/filename changes with actual PolicyKit.
2009-01-21fixing spec for access_control.type due to Policykit changesDanny Kukawka1-2/+2
Fixed spec for access_control.type due to Policykit changes. Fixed small typo.
2009-01-21aallowllow calling KillSwitch methods in D-Bus configurationColin Walters1-0/+3
hal.conf.in: Update dbus permissions to include KillSwitch, which NetworkManager needs. Taken from Fedora: http://cvs.fedoraproject.org/viewvc//devel/hal/hal-dbus-perms.patch?view=markup
2009-01-19fix make distcheckDanny Kukawka2-1/+8
Fixed commit ebb0482963494c8733e211dc5ec16253b776a748 to get make distcheck working again. A user can't run "make distcheck" because of /lib/udev/rules.d can't be created due to permissions. This commit change the Makefile and configure to do the same as the udev package. The path to ${udev_prefix}/lib/udev/rules.d can get changed via --with-udev-prefix.
2009-01-19fix ACL handling for removable block devices (as CD/DVD)Ludwig Nussel1-3/+13
Fixed ACL handling for removable block devices (as CD/DVD). Do not set acl properties on unpartitioned volumes (bnc#408252), this change the settings for CD/DVD burn devices and prevent the user from burning CD/DVD's.
2009-01-19Merge branch 'master' of ssh://dkukawka@people.freedesktop.org/~dkukawka/halDanny Kukawka11-30/+618
2009-01-19fix auto ACL management for DRIMartin Pitt1-1/+1
Fix copy&paste error which assigned the wrong access_control.file for /dev/drm/card* devices. It previously copied "input.device", but should be "linux.device_file".
2009-01-14Merge branch 'master' of ssh://dkukawka@git.freedesktop.org/git/halDanny Kukawka3-3/+3
2009-01-07use '@' for abstract namespace socket, bump udev requirementKay Sievers2-2/+2
2009-01-07install udev rule to /lib/udev/rules.d/Scott James Remnant1-1/+1
2009-01-05add ACL support for scsi_generic scanner devicesDanny Kukawka1-0/+5
Added ACL support for scsi_generic scanner devices.
2008-12-15fixed serial.port handling for USB serial devicesDanny Kukawka2-3/+10
Fixed serial.port handling for USB serial devices. Since USB devices can have several ports and since the order of /dev/ttyUSB* depends on the device order, it make no sense to base serial.port for USB devices on the number in /dev/ttyUSB*. Here is the port number of the USB device itself more important to detect/match devices. Changed the spec description and handling/detection of serial.port for USB serial devices to use device/port_number info from sysfs. This change shouldn't affect existing matches in fdi files (as e.g. for modems) as long as there wheren't more than one USB serial device in the machine as the entry was generated. I imply this for now with this change. This change allow us to match e.g. modems also if you put more than one modem with USB serial ports to a machine. For more see: https://bugzilla.novell.com/show_bug.cgi?id=458307
2008-12-11fix ACL handling for drm devicesDanny Kukawka1-1/+1
Fixed ACL handling for drm devices. Use linux.device_file instead of input.device for access_control.file.
2008-12-05fix joystick detection (patch by Ari Mustonen)Danny Kukawka1-27/+37
Fix joystick/touchpad/tablet detection. Path contributed via https://launchpad.net/bugs/284129 by Ari Mustonen.
2008-11-28add org.freedesktop.Hal.Device.Leds interface to specDanny Kukawka1-0/+48
Added org.freedesktop.Hal.Device.Leds interface to the spec.
2008-11-28update .gitignore for hald/linux/addonsDanny Kukawka1-0/+1
Updated .gitignore for hald/linux/addons, added hald-addon-leds.
2008-11-28add a new singleton addon to handle ledsDanny Kukawka6-0/+395
Added a new singleton addon to handle led devices. The new interface is called org.freedesktop.Hal.Device.Leds and provide these methodes: - int SetBrightness (int brightness_value) - int GetBrightness ()
2008-11-28add the leds linux kernel subsystem to HALDanny Kukawka2-0/+122
Added the leds linux kernel subsystem to HAL. These are the current properties of led devices: - leds.device_name (string, mandatory) - leds.function (string, mandatory) - leds.colour
2008-11-27fix building on Linux 2.6.28Martin Pitt1-0/+1
2.6.28 changed linux/serial.h to use __32, which is provided by linux/types.h. While arguably a kernel bug, working around it by including it explicitly doesn't hurt.
2008-11-27add ACL support to removable block devicesMartin Pitt2-0/+18
This adds support for adding ACLs to removable block devices (such as USB keys) on insertion. This is useful for allowing users to run mkfs or fsck on their USB keys. Please note that the patch does *not* enable it by default, that's up to distros or individual users (gnome-polkit-authorization), but it provides a standard flip to configure this behaviour.
2008-11-26Merge branch 'master' of ssh://dkukawka@people.freedesktop.org/~dkukawka/halDanny Kukawka15-69/+792
2008-11-20fixed ipw addonDanny Kukawka1-2/+2
Fixed ipw addon, use fputs instead of fputc to set the status to sysfs.
2008-11-19add new killswitch.state propertyDanny Kukawka2-0/+42
Added new (not mandatory) killswitch.state property to the killswitch namespace reflecting the current state of the killswitch as reported by e.g. the linux kernel. There are three possible states: - 0: Radio output (soft) blocked - 1: Radio output allowed - 2: Radio output (hard )blocked, non-overrideable via SetPower()
2008-11-19add a new singleton addon for the rfkill subsystemDanny Kukawka5-0/+384
Added a new singleton addon for the rfkill subsystem to HAL. This addon (hald-addon-rfkill-killswitch) handles all killswitches provided by the rfkill linux kernel subsystem. Note: If your system provides a rfkill device for the Intel WLAN device(s), you may should build hal-info with --disable-killswitch-ipw-wlan to prevent trouble. TODO: Find a way in the fdi-files to prevent trouble with the ipw killswitch device spawned by via the fdi-files.
2008-11-15improve HAL performance for filesystem detectionDanny Kukawka2-3/+63
Improved HAL performance for filesystem detection. Call libvolume_id functions in the volume prober to get the following information only if we have no udev information about the filesystem: - volume.fsusage - volume.fstype - volume.fsversion - volume.uuid - volume.label HAL now simply use the already in the HotplugEvent stored information from udev if available, since udev already called libvolume_id to get these info. With this change HAL needs to probe only CD/DVD media and maybe fakevolume related volumes.
2008-11-15Revert "cleanup handling volume filesystem information"Danny Kukawka3-57/+182
This reverts commit 7aca1f3fefefd3c760636aabcff1e25946ab6391. Reverted the change to prevent trouble with CD/DVD media (because they are fakevolumes and udev tell us no information about the filesystem on insert the media).
2008-11-10allow uid/gid mount option for ntfsMichael Biebl1-0/+2
Allow uid/gid mount option for ntfs, as reported in http://bugs.debian.org/427109.
2008-11-10increase hal helper timeout to fix slow CD-ROMsMartin Pitt1-1/+1
in https://launchpad.net/bugs/218834 we got a report that some CD-ROMs are too slow to properly detect everything within the standard 10 seconds hal helper timeout: [6188]: 22:22:56.009 [D] probe-volume.c:379: Doing probe-volume for /dev/scd0 [...] [6182]: 22:22:58.002 [I] addon-storage.c:363: ... device /dev/scd0 is not locked on HAL [6188]: 22:23:05.558 [D] probe-volume.c:542: volume.disc.capacity = 2384855040 [...] [6188]: 22:23:06.406 [E] probe-volume.c:302: Timed out probing /dev/scd0 - broken device driver? (NB the timestamps). Since the default 10 seconds seems to be pretty much arbitrary, I just raised it to 20 for now. Fixes bz #13009.
2008-11-10fixed call of hotplug_queue_now_empty() under linuxDanny Kukawka1-2/+4
Fixed call of hotplug_queue_now_empty() under linux. Call the function first if the hotplug queue is really empty and if there is no hotplug event in progress. Otherwise you get DeviceAdded events while HAL is still initialising on startup.
2008-11-07add memstick to storage.bus in specDanny Kukawka1-0/+6
Documented memstick as possible value of storage.bus in the spec.
2008-11-07add memstick and memstick_host namespace to specDanny Kukawka1-0/+44
Documented memstick and memstick_host namespace in spec.
2008-11-07another fix for commit d29ea6b31b67bf540b23dfedfa1b7add4c22bce2Danny Kukawka1-2/+0
Another fix for commit d29ea6b31b67bf540b23dfedfa1b7add4c22bce2: - info.bus is deprecated, don't add this key - info.subsystem should get only set in the subsystem specific code if it differs from the subsystem or in other rare cases
2008-11-07fix commit d29ea6b31b67bf540b23dfedfa1b7add4c22bce2Danny Kukawka1-103/+106
Fixed commit d29ea6b31b67bf540b23dfedfa1b7add4c22bce2: keep subsystem handler and related code in alphabetical order.
2008-11-07add memstick/memstick_host supportMatthew Garrett2-0/+113
This adds basic memory stick support to hal. It's enough to get automounting up, but it doesn't expose any of the memory stick specific attributes yet since I'm not sure which of them are especially useful.
2008-11-05cleanup handling volume filesystem informationDanny Kukawka3-182/+57
Cleaned up handling of volume filesystem information. Don't call libvolume_id functions in the volume prober to get the following information: - volume.fsusage - volume.fstype - volume.fsversion - volume.uuid - volume.label HAL now simply use the already in the HotplugEvent stored information from udev, since udev already called libvolume_id to get these info.
2008-11-03Merged changes from git.freedesktop.org/git/hal.git (315ca276ffdde9a) Danny Kukawka2-33/+35
Merge commit '315ca276ffdde9a0cba809f67cddf58f258ee1d3'
2008-11-03fix commit 151957477daaf985acdb2d7bda5b4a418c612cf3Danny Kukawka1-1/+0
Fixed commit 151957477daaf985acdb2d7bda5b4a418c612cf3: don't call computer_probing_helper_done() twice.
2008-11-03prefer openfirmware interface for DMI even when dmidecode is found in the pathRichard Hughes1-28/+30
This allows us to add OLPC specific code in the future. Patch coming up.
2008-11-03remove the forced removal of the trailing newline to fix OLPC probingRichard Hughes1-5/+6
While doing some patches for OLPC, all the OFW firmware strings are not terminated with \n\0 just with \0. This means that we get results like OLP when we should be getting OLPC. data = OLPC0 index = 01234 len = 4 data[len-1] = C data = IBMn0 index = 01234 len = 4 data[len-1] = \n Now, the isspace check checks for \n, so we can remove the explicit \0 termination, and rely on the code three lines down. Removing the explicit code allows non-newline terminated strings to be got with hal_util_get_string_from_file().
2008-10-31fix handling of Device Mapper devices for LUKSDanny Kukawka4-1/+23
HAL has currently a massive problem with Device Mapper devices, especially on coldplug, and parallel device handling . Since dm-devices are virtual devices and have no parent we can never say (when HAL process the hotplug queue) which the related parent storage device (e.g. /dev/sdb1) is and when it will be available. Changed HAL to identify dm-devices on hotplug/coldplug and to mark them as such in the HotplugEvent with is_dm_device=TRUE. When the hotplug queue get processed, delay all dm-device as long as there are still non-dm block devices in the queue to be sure that all block devices/volumes are available when the Device Mapper block devices get handled.
2008-10-30fixed typo, adjust description of volume.fstype.alternative.preferredDanny Kukawka1-4/+7
Fixed typo (s/prefered/preferred) and adjusted description of volume.fstype.alternative.preferred to me more clear.
2008-10-30check module parameter of acpi video to set brightness_in_hardwareDanny Kukawka1-0/+18
Check the acpi video module parameter brightness_switch_enabled via sysfs to find out of the kernel handles already brightness changes if a brightness key get pressed. This works only for the generic 'video' module and only on HAL startup. If someone change the module settings on runtime without reload the module the value of brightness_in_hardware can be false. We can live with this situation, since you should know what you do if you change module parameter on runtime.
2008-10-30fixed md related code in hotplug_event_begin_add_blockdev()Danny Kukawka1-1/+1
Fixed md related code to find/set the parent devie in hotplug_event_begin_add_blockdev().
2008-10-30add cciss as possible storage.bus to specDanny Kukawka1-0/+6
Added cciss as possible storage.bus to spec.
2008-10-30add support for HP Smart Array CCISS block devicesDanny Kukawka1-48/+70
Added support for HP Smart Array CCISS block devices, which are in recent kernel versions virtual block/storage devices and no longer pci based (also if the Smart Array controller is a PCI device).