summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-03-05regenerate cache if it's zero sizedRichard Hughes1-0/+4
Sometimes when systems go a bit haywire, the cache file is written out as a zero byte file. We're still debugging this, but in the case of a zero byte cache, just regenerate it anyway
2009-03-02define ACL and device-access policy for smart_card_readerDanny Kukawka3-0/+27
Defined ACL and device-access policy for smart_card_reader. Added information to the spec.
2009-03-02define new (sub-)namespace(s) for smart card readerDanny Kukawka1-0/+35
Defined new (sub-)namespace(s) for smart card reader as discussed in fd.o#19663 and opensc: - smart_card_reader - smart_card_reader.card_reader (for smart card reader) - smart_card_reader.crypto_token (for smart/crypto token devices)
2009-02-28set default udev_prefix to ${exec_prefix}/lib in configure.inDanny Kukawka1-1/+1
Set default udev_prefix to ${exec_prefix}/lib in configure.in to get by default ${exec_prefix}/lib/udev/rules.d as the actual udev package use. Use --with-udev-prefix to change the path if needed.
2009-02-28Merge branch 'master' of ssh://dkukawka@git.freedesktop.org/git/halDanny Kukawka2-1/+7
2009-02-28allow specifying a udev dir in etcRichard Hughes1-1/+1
Fedora still has udev rules dir as /etc/udev/rules.d, so remove the forced lib prefix
2009-02-26add x11_driver for KVM graphics tabletRichard Hughes1-0/+6
2009-02-26remove special serial tablet handling for HP tc4200Danny Kukawka1-11/+4
Removed special serial tablet handling for HP tc4200. The kernel should handle this correctly, otherwise we have to fix the kernel or add a new workaround.
2009-02-26don't add input capabilities to tablet PNP deviceMatthew Garrett1-4/+0
If hal detects that a PNP device is associated with a tablet PC it adds the input capability to that device. This is wrong - the input device is the serial device whose parent is this PNP device. Adding the input capability just results in X attempting to add the PNP device as an input device, despite it not being one and having no associated driver. FDI files for the appropriate driver can add the capabilities to the serial port device, so there's no need to have the core add these misleading ones. Simply remove them.
2009-02-26fix building with current libsmbiosMario Limonciello1-0/+1
Properly link against libsmbios library when enabling smbios support.
2009-02-22fix commit 92e7f2e8b2a1a36d3ec2b371424719e7078d91daDanny Kukawka1-3/+2
Fixed commit 92e7f2e8b2a1a36d3ec2b371424719e7078d91da: don't free 'const char *'. Changed code to prevent usage of g_strdup() which prevents need to use g_free().
2009-02-22Merge branch 'master' of ssh://dkukawka@git.freedesktop.org/git/halDanny Kukawka15-21/+36
2009-02-21make Magneto-Optical devices visibleGuillem Jover2-0/+4
Made Magneto-Optical devices visible. Add missing breaks when probing MO volume types, so that the volume.disc.type do not get shadowed by the CD-ROM case. And when computing the volume display name, do not overwrite it just after having handled the MO cases. This also fixes a memory leak.
2009-02-21remove unused call to hal_util_get_last_elementGuillem Jover1-3/+0
Remoced unused call to hal_util_get_last_element in memstick_add().
2009-02-21do not call property_set_lookup before checking param validityGuillem Jover1-1/+1
Fixed libhal: do not call property_set_lookup before checking param validity.
2009-02-21remove unused pointer to struct mntent returned from getmntent_rGuillem Jover3-6/+3
Removed remove unused pointer to struct mntent returned from getmntent_r() .
2009-02-21fix some memory leaks on normal operationGuillem Jover4-2/+10
Fixed some memory leaks on normal operation. Some pointers were being lost when being overwritten by new values, others were just not being freed.
2009-02-21do not leak on error conditionsGuillem Jover5-2/+9
Fixed leaks on error conditions.
2009-02-21addon-cpufreq: do not leak va_arg on error conditionGuillem Jover1-4/+6
Fixed addon-cpufreq: do not leak va_arg on error condition.
2009-02-21do not compare arrays against NULLGuillem Jover1-3/+3
Do not compare arrays against NULL.
2009-02-13move all storage/block related policies to one blockDanny Kukawka1-37/+42
Moved all storage/block related policies to one block to prevent accidentally overwriting of already set policies.
2009-02-13fix problems with removable-block policy and floppy devsDanny Kukawka1-20/+25
Fixed problems with removable-block policy and floppy devices. Moved removable-block part to the end of the file and added a check if a device as already a rule to prevent overwriting already set floppy or other policy. (bnc#471514)
2009-02-02provide comparable linux kernel version informationDanny Kukawka2-0/+35
Provide comparable linux kernel version information via these new properties: system.kernel.version.major (int) system.kernel.version.minor (int) system.kernel.version.micro (int) This allow us to track changes in the kernel within the fdi files and rules.
2009-01-29fix commit 33b54318f73012e24220456216794dd3ff39fc93Danny Kukawka1-1/+1
Fixed commit 33b54318f73012e24220456216794dd3ff39fc93. Don't use LIBHAL_FREE_DBUS_ERROR() if there was already a dbus_error_is_set() check.
2009-01-29Merge branch 'master' of git+ssh://hughsient@git.freedesktop.org/git/halRichard Hughes9-169/+424
2009-01-29allow child timeout to be set so hal starts on big serversRichard Hughes1-5/+15
When a server has a _lot_ of disks, hald fails to startup as it spends more than 250 seconds probing. We don't want to hardocde this number any higher, as this may leave haldaemon hung for a long time if there is an error. Add as a command line argument that can be appended in the init script if this is required.
2009-01-29set the retval of hal-device correctly on errorRichard Hughes1-1/+8
At the moment hal-device always returns success. Only return success if a device was matched.
2009-01-29check udi in hal-get-propertyRichard Hughes1-0/+14
We are not checking if a UDI is valid in hal-get-property which means getting a horrible DBUS error if the entry is not a valid DBUS path.
2009-01-28fixed entries to add acl related keys only if there is a deviceDanny Kukawka1-82/+110
Fixed existing entries to add acl related keys only if there is also a device to which HAL can add the ACL rules.
2009-01-28add current default policies for device access to specDanny Kukawka1-5/+48
Added current default policies for device access, for active and inactive users, to the list of existing policies in the spec.
2009-01-28sort existing PolicyKit policies for device access alphabeticalDanny Kukawka1-24/+24
Sorted existing PolicyKit policies for device acces alphabetical.
2009-01-28filled TODOs with information for the printer namespaceDanny Kukawka1-6/+10
Filled TODOs with information for the printer namespace.
2009-01-28update spec for printer access policyDanny Kukawka1-0/+6
Updated spec for new printer access policy.
2009-01-28add ACL and device-access policy for printersDanny Kukawka2-0/+16
Added ACL and device-access policy for printers.
2009-01-28use addset instead of append for ACL rulesDanny Kukawka1-34/+34
Changed existing entries to use addset instead of append to prevent double entries if a device may have more than one matching capability.
2009-01-28put usbraw matches for ACL together into one blockDanny Kukawka1-7/+3
Put usbraw matches for ACL together into one block, fixed whitespaces.
2009-01-25fixed buffer overrunhal-0_5_12-openSUSE11.1-branchAndreas Schwab1-6/+10
Fixed possible buffer overrun if there are invalid formated led devices (e.g. iwl-phy0:assoc instead of correctly iwl-phy0::assoc as the kernel documentation says).
2009-01-22add section about "Device Files policies" to specDanny Kukawka1-0/+136
Added new section about existing "Device File policies", defined via access_control.type, to the spec.
2009-01-22add some parameter checks to hal_util_*et_driver*() functionsDanny Kukawka1-0/+10
Added some parameter checks and debug messages to hal_util_get_driver_name() and hal_util_set_driver().
2009-01-22fixed HAL D-Bus config: added send_destination for all interfacesDanny Kukawka1-16/+31
Fixed HAL D-Bus config due to D-Bus changes caused by CVE-2008-4311. Added send_destination="org.freedesktop.Hal" for all exported interfaces as recommended here: https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/318783 " [...] *IMPORTANT* you MUST include send_destination on ALL allow or deny tags. Omitting it is a SERIOUS bug! <!-- !! SERIOUS BUG !! --> <allow send_interface="x.y.z" /> This allows any service to receive method calls of the given interface, not just your own service! It also implicitly allows any service to receive method calls with no interface specified, in case they match this interface! [...] "
2009-01-22remove all receive_* lines from HAL D-Bus configDanny Kukawka1-31/+0
Fixed HAL D-Bus config due to D-Bus changes caused by CVE-2008-4311. Removed all all receive_* lines from HAL D-Bus config as recommended here: https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/318783
2009-01-22add org.freedesktop.DBus.Properties standard iterfaceDanny Kukawka1-0/+2
Fixed HAL D-Bus config due to D-Bus changes caused by CVE-2008-4311. Added org.freedesktop.DBus.Properties standard iterface as recommended here: https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/318783
2009-01-22add org.freedesktop.Hal.Device.DockStation to HAL D-Bus configDanny Kukawka1-0/+3
Added org.freedesktop.Hal.Device.DockStation to HAL D-Bus config/ policy.
2009-01-22add org.freedesktop.Hal.Device.Storage to HAL D-Bus configDanny Kukawka1-0/+3
Added org.freedesktop.Hal.Device.Storage to HAL D-Bus config/ policy.
2009-01-22add org.freedesktop.Hal.Device.WakeOnLan to HAL D-Bus configDanny Kukawka1-0/+3
Added org.freedesktop.Hal.Device.WakeOnLan to HAL D-Bus config/ policy.
2009-01-21add D-Bus policy rule for org.freedesktop.Hal.Device.Storage.RemovableDanny Kukawka1-0/+3
Added D-Bus policy rule for org.freedesktop.Hal.Device.Storage.Removable.
2009-01-21add D-Bus policy rule for org.freedesktop.Hal.Device.KeyboardBacklightDanny Kukawka1-0/+3
Added D-Bus policy rule for org.freedesktop.Hal.Device.KeyboardBacklight
2009-01-21add DBus policy rule for org.freedesktop.Hal.Device.LightSensorDanny Kukawka1-0/+3
Added DBus policy rule for org.freedesktop.Hal.Device.LightSensor.
2009-01-21add DBus policy rule for org.freedesktop.Hal.Device.CPUFreqDanny Kukawka1-0/+3
Added DBus policy rule for org.freedesktop.Hal.Device.CPUFreq.
2009-01-21add DBus policy rule for org.freedesktop.Hal.Device.LedsDanny Kukawka1-0/+3
Added DBus policy rule for org.freedesktop.Hal.Device.Leds.