summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-10-13version bumpKay Sievers
2010-10-11Install libgudev-1.0.so in prefix / instead of prefix /usrDavid Zeuthen
This is to match where libudev.so is installed and it works because all dependent libraries are already installed in / instead of /usr on most distros: $ ldd /usr/lib64/libgudev-1.0.so linux-vdso.so.1 => (0x00007fff44dff000) libudev.so.0 => /lib64/libudev.so.0 (0x0000003bf2600000) libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x0000003fb5200000) libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x0000003fb4e00000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003d5b000000) librt.so.1 => /lib64/librt.so.1 (0x0000003d5b800000) libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x0000003fb4a00000) libc.so.6 => /lib64/libc.so.6 (0x0000003d5ac00000) /lib64/ld-linux-x86-64.so.2 (0x0000003d5a800000) With this change it is possible to write libgudev applications that can be installed in /bin or /sbin and can run without /usr being mounted. This is needed for e.g. udisks, NetworkManager and other subsystem-specific daemons. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-10-07cdrom_id: request the drive profile features with a dynamic lengthHarald Hoyer
Some drives don't like huge feature buffers, so we query twice. First run for the current profile and to get the length. Second time we query the whole profile feature set.
2010-10-07release 163Kay Sievers
2010-10-07udevd: add sd-daemon.cKay Sievers
2010-10-07systemd: sort before basic.targetKay Sievers
2010-10-05cdrom_id: Don't read beyond "last track" in TOCMartin Pitt
Read the first and last track from the TOC header, and do not go beyond that stated number of tracks when reading the TOC. Otherwise we interpret random data which leads to bogus tracks. (Reported on an IronKey, which reported 1 data track, and 4 audio tracks which weren't actually present.)
2010-10-05cdrom_id: Fall back to CDROM_DRIVE_STATUS if all MMC commands failMartin Pitt
Reportedly, some "when I'm grown up I want to be a CD drive" fake USB CD sticks like the IronKey neither support the SCSI "GET CONFIGURATION" nor the older (pre-MMC2) "READ DISC INFORMATION" command. In that case, check if cd_media_compat() detected that there is a disc present, and assume that we have a CD-ROM medium.
2010-10-05Revert "cdrom_id: Try reading the medium if all MMC commands fail"Martin Pitt
Turns out we can do this much simpler by assuming that cd_media_compat() works, which seems to be the case for the IronKey. This reverts commit ea88774a922c734afd751a59d8102bfa4806a1a6.
2010-10-05cdrom_id: Try reading the medium if all MMC commands failMartin Pitt
Reportedly, some "when I'm grown up I want to be a CD drive" fake USB CD sticks like the IronKey neither support the SCSI "GET CONFIGURATION" nor the older (pre-MMC2) "READ DISC INFORMATION" command. In that case, check if we can read data from the drive, and assume that we have a CD-ROM medium if it succeeds.
2010-09-29systemd: hook into basic.target instead of sysinit.targetKay Sievers
2010-09-25keymap: Add alternate MSI vendor nameLee, Chun-Yi
Add new vendor name "Micro-Star International" in 95-keymap.rules. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-09-21Add automatic rules syntax checkMartin Pitt
Add test/rule-syntax-check.py, a script for checking the syntax of all udev rules files passed as command line arguments. Add a wrapper test/rules-test.sh which calls rule-syntax-check.py on all udev rules that we ship, but does nothing if Python is not available. Integrate this into make check/distcheck.
2010-09-21fix various syntax errors in rulesMartin Pitt
2010-09-21Clarify WAIT_FOR documentationMartin Pitt
The path is relative to the sysfs device, so this provides an easy way to wait for an attribute to appear.
2010-09-20gudev: add a few annotations that newer gobject-introspection versions demandTorsten Schoenfeld
2010-09-14keymap: Add Lenovo Y550Martin Pitt
https://launchpad.net/bugs/543065
2010-09-07Bump required GLib version to 2.22David Zeuthen
This is needed for g_main_context_get_thread_default(). Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-07gudev: Deliver ::uevent signal in the thread-default main loopDavid Zeuthen
... that the GUdevClient object was constructed in. This change makes GUdev follow the GLib guidelines and, more importantly, makes it possible to actually use the library in a multi-threaded application. Prior to this patch, signals were emitted in the thread that ran the "default" main loop. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-07scsi_id: fix compiler warningsKay Sievers
2010-09-07scsi_id: export target port groupHannes Reinecke
For ALUA support it's useful to have the target port group number of a device. Signed-off-by: Hannes Reinecke <hare@suse.de>
2010-09-03version bumpKay Sievers
2010-09-03release 162Kay Sievers
2010-09-03Revert "Add alternative KVM MAC address blacklist"Kay Sievers
This reverts commit 634afac119bbe6bc21719ae3daa45805b1cf3334. 54:52:00 was just a bug in libvirt, and that's better fixed locally, and we should not carry it in udev rules.
2010-09-03systemd: enable all udev services unconditionallyKay Sievers
2010-09-03ChangeLog fixMichal Soltys
In v141 -> v142 entry, there's a note about udevd creating /dev/{null,kmsg,console}. It was added in commit 540f46698dd5a3b, but shortly after that removed in a00bdfa16b9bac7 before v142 release. Signed-off-by: Michal Soltys <soltys@ziu.info>
2010-09-02Add alternative KVM MAC address blacklistMartin Pitt
Reportedly, older KVM/Qemu instances indeed do use 54:52:00:*, so add this as an alternative.
2010-09-02Don't install systemd scripts with --without-systemdsystemunitdirMichael Forney
Currently, the scripts get installed to /no/ if that option is specified. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-09-02do not create persistent name rules for VMWare network interfacesMartin Pitt
Not generating persistent MAC address rules will significantly ease cloning of VMs. The kernel reliably sorts eth* enumeration by bus number, so as long as you only have cards from one vendor (or more precisely, drivers), the enumeration will be stable. Having cards from different vendors is very unlikely in VMs. KVM was already covered in the previous commit, this is the equivalent blacklist for VMWare: http://www.coffer.com/mac_find/?string=005056 http://www.coffer.com/mac_find/?string=000c29 https://launchpad.net/bugs/341006
2010-09-02Fix KVM MAC address rangeMartin Pitt
KVM uses 52:54:00:* MACs: http://git.savannah.gnu.org/cgit/qemu.git/tree/net.c#n796
2010-08-31do not create persistent name rules for KVM network interfacesMarco d'Itri
The virtual interfaces created by KVM are stable, 54:52:00 is the MAC-48 range of KVM.
2010-08-31set SELinux context on 'add' but not on 'change' eventsKay Sievers
2010-08-31cdrom_id: Fix DVD blank detection for sloppy firmwareJan Drzewiecki
Reportedly, many CD drive firmwares will only consider the MSB in a READ command, thus if we request 17 blocks to be read, we'll actually only get 16 in many cases, and thus miss out the interesting sector #17. This would lead to falsely considering nonempty DVDs as blank. Fetch 32 blocks now, which should work everywhere. Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-30cdrom_id: Fix DVD-RW media detectionMartin Pitt
Commit cf2205a19 applied the "restricted overwrite" vs. "sequential" DVD-RW test to feature_profiles() (which reads the drive capabilities), which caused every DVD medium to be detected as ID_CDROM_MEDIA_DVD_RW. Now apply it to cd_profiles() instead, to just check the current profile.
2010-08-27keymap: Fix Acer TravelMate 4720Martin Pitt
The previous change just fixed the Bluetooth key, but Screen Lock and Browser also need to be changed. https://launchpad.net/bugs/569815
2010-08-27gudev: fix crash if netlink is not availableMartin Pitt
gudev_client_new() assumes that priv->monitor is never NULL, but this happens on older kernels. Let's not crash client programs because of that. https://launchpad.net/bugs/581527
2010-08-27udev(7) manpage: Fix description of $attrMartin Pitt
Fix the manpage to describe the real behaviour of $attr: It doesn't search all parent devices any more, just the one selected by KERNELS etc. https://launchpad.net/bugs/348513
2010-08-25keymap: Fix Sony VAIO VGN-SZ2HP/BMartin Pitt
Reportedly this needs the module-sony keymap, not the -old one. https://launchpad.net/bugs/613578
2010-08-25Add support for oom_score_adjLuca Tettamanti
/proc/<pid>/oom_adj has been deprecated (kernel v2.6.36) due to the rework of the badness heuristic; oom_score_adj is the replacement. Keep a fallback to the old interface for compatibility with older kernels. See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=a63d83f427fbce97a6cea0db2e64b0eb8435cd10 Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-08-25udevd: remove unneeded credential passing from init_notify()Kay Sievers
2010-08-23keymap: Add HP G60Martin Pitt
https://launchpad.net/bugs/554944
2010-08-22keymap: Add Onkyo PCMartin Pitt
Thanks to Pau Oliva! https://launchpad.net/bugs/612529
2010-08-20udev(7): Point out required extension, and remove some confusionMartin Pitt
Rules files must end in .rules. Also drop the redundant and confusing sentence about "file names must be unique". What is really meant is explained in a better way in the paragraph above. https://launchpad.net/bugs/616108
2010-08-19version bumpKay Sievers
2010-08-19init: edit systemd service descriptionsKay Sievers
2010-08-19udevd: add pid to kmsg logsKay Sievers
2010-08-19init: add 'udev -' to description in systemd service filesKay Sievers
2010-08-18udev-acl: do not mistake all SCSI "processor" devices for scannerMarco d'Itri
Both rules can be removed since now libsane sets libsane_matched also for SCSI scanners. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589751
2010-08-17init: update systemd service filesKay Sievers
2010-08-17init: update systemd service filesKay Sievers