aboutsummaryrefslogtreecommitdiffstats
path: root/rules
AgeCommit message (Collapse)AuthorFilesLines
2012-03-22rules: sound - set ID_ID for firewire devicesKay Sievers1-0/+2
2012-03-21rules: sound - add vendor/model strings for firewire devicesKay Sievers1-0/+4
2012-03-12rules: Enable USB autosuspend on more USB HID devicesMatthew Garrett2-13/+49
Many servers will be connected to KVMs or include iLO support, and this is often presented as a set of USB input devices. Enabling autosuspend on these allows the USB hardware to be powered down, avoiding unnecessary wakeups and power consumption. The input devices will be self powered, so there's no risk of losing input events as there would be for real input devices. The same is true of USB input devices that are built into the system.
2012-03-07rules: move all rules to top level rules/ dirKay Sievers12-0/+0
2012-03-07rules: delete s390 rules, they will move to s390utilsKay Sievers1-4/+0
2012-03-07rules: move 42-qemu-usb.rules to rules/ dirKay Sievers1-0/+13
2012-03-07rules: delete outdated 30-kernel-compat.rulesKay Sievers1-15/+0
2012-03-07move src/extras subdirectories to src/Kay Sievers1-1/+1
2012-02-23rules: do not create by-id/scsi-* links for ATA devicesKay Sievers1-4/+0
2012-01-24fix path to extrasKay Sievers1-1/+1
2012-01-21rules: rtc - point /dev/rtc symlink to 'hctosys' deviceKay Sievers1-1/+1
2012-01-10tabs are as useful as a hole in the headKay Sievers2-32/+32
2012-01-09rules: delete arch specific rulesKay Sievers2-10/+0
2012-01-01remove mknod() logic and rely on 'devtmpfs'Kay Sievers2-8/+8
2011-12-27builtin: move usb-db, pci-db to builtinsKay Sievers3-6/+6
2011-12-25builtin: firmware - move 'firmware' tool to builtinsKay Sievers1-0/+2
2011-12-23rules: do not preprocess 80-drivers.rules + 75-probe_mtd.rulesKay Sievers2-1/+0
2011-12-23builtin: kmod - switch modprobe to builtinKay Sievers1-6/+6
2011-12-23rules: do not preprocess 60-persistent-storage.rulesKay Sievers2-1/+0
2011-12-23rules: switch to built-in blkidKay Sievers1-3/+5
2011-12-21make: do not (mis-)use the config file generator, create .xz tarballKay Sievers1-1/+1
2011-12-05use libexecdir, bindir, sbindir, switch to /usr/lib/udev in documentationKay Sievers4-15/+17
2011-11-07rules: fix typoKay Sievers1-1/+1
2011-11-06rules: restore rule to set cdrom group for optical drivesKay Sievers1-0/+1
On Sun, Nov 6, 2011 at 21:45, William Hubbs <w.d.hubbs@gmail.com> wrote: > someone on gentoo just reported to me that the following rule has been > deleted from udev-174, which is leaving his optical devices in the > standard "disk" group. He does not want to add his users to this group.
2011-10-19rules: do not load sg moduleKay Sievers1-1/+0
2011-09-26rules: fuse: do not mount fusectl from udev rulesKay Sievers1-2/+1
All mounting is done by systemd now. Non-systemd systems need to ship their own rules if they want fusefs be auto-mounted.
2011-08-12rules: remove legacy rules for cdrom and usb printerKay Sievers1-2/+0
2011-08-05implement path_id, usb_id, input_id as built-in commandKay Sievers9-18/+19
2011-08-04rules: move input_id to default rulesKay Sievers2-2/+2
On Tue, Aug 2, 2011 at 10:56, Thomas Bächler <thomas@archlinux.org> wrote: > Commit c49df20758e0f22778cfc93b598f2929f4c86272 prevented udev from > creating broken symlinks for bluetooth hid devices. Unfortunately, > it also removed the ID_INPUT=1 and ID_INPUT_{KEY,MOUSE}=1 properties > from those devices. Xorg relies on these properties for cold- and > hotplugging of input devices.
2011-07-20rules: sound - instead of ID_IFACE use standard ID_USB_INTERFACE_NUMKay Sievers2-7/+4
2011-07-20rules: serial - do not export ID_PORT, use ID_USB_INTERFACE_NUMKay Sievers1-7/+7
2011-07-20rules: input - do not create (broken) links for bluetooth devicesKay Sievers1-0/+1
2011-07-14rules: mount fuse filesystem only 'add'Kay Sievers1-1/+1
2011-07-10rules: input - call path_id for ACPI devicesKay Sievers1-1/+1
2011-07-05rules: fix wrong wildcard match, we always need a ':*' at the endKay Sievers1-1/+1
2011-07-05rules: remove redundant MODE="0664" from lp rulesKay Sievers1-4/+2
2011-06-28rules: set polling value only if it is disabledKay Sievers1-1/+1
2011-06-18rules: move polling rule above 'block' matchKay Sievers1-3/+4
2011-06-18rules: enable in-kernel media-presence pollingKay Sievers1-1/+4
2011-06-11rules: support for gpt partition uuid/labelKeshav P.R1-0/+4
2011-06-06rules: run input_id for main input devices tooKay Sievers1-1/+0
2011-05-27rules: apply 'audio' group of the static snd/{seq,timer} nodesKay Sievers1-1/+2
2011-05-05bump requirement to Linux kernel 2.6.32 and ARM 2.6.36Kay Sievers1-91/+1
2011-04-04Avoid spinning up CD on pressing eject buttonMartin Pitt1-2/+2
When the CD tray door is locked and the hardware eject button is pressed, newer kernels (2.6.38+) will send out a change event with a DISK_EJECT_REQUEST==1 property. Do not run cdrom_id and blkid in this case, as the media state and contents does not change, and this only needlessly spins up the drive again right before ejection.
2011-03-30Run ata_id on non-removable USB devicesDavid Zeuthen1-2/+6
If a USB device is marked as removable, it is often a SATA/PATA disk in an enclosure (note that flash card readers and usb storage sticks are always marked as removable). In this case, try running ata_id (which sends ATA commands wrapped in SCSI ATA PASS THROUGH commands) to get information about the disk. If this fails, just fall back to running usb_id since it could be the device isn't an ATA device at all or the device doesn't have a SAT layer. This extra information is nice to have as it indicates if it is suitable to send e.g. SMART commands to the disk, whether the disk supports power management and so on. Additionally, the VPD and serial number returned by ata_id is usually more accurate as it stems from the disk itself instead of the enclosure. Note that udisks has been doing this for a while KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", IMPORT{program}="udisks-probe-ata-smart $tempnode" so this change shouldn't be too disruptive (udisks-probe-ata-smart also sends ATA commands via the ATA PASS THROUGH command). Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-03-23rules: run ata_id only on SPC-3 or later optical drivesKay Sievers1-2/+2
2011-02-1560-persistent-input.rules: Do not create duplicate linksMartin Pitt1-2/+2
Commit 5e9eb156c added new symlinks for multi-interface USB input devices. However, we do not actually need the one for interface number "00", as we already have the symlink without the interface number.
2011-02-1560-persistent-input.rules: Support multiple interfacesMartin Pitt1-0/+2
Create /dev/input/by-id symlinks containing the USB interface number so that each interface in a multi-interface USB input device gets its own symlink. Thanks to a7x <ubuntu-a7x@scientician.org>! https://launchpad.net/bugs/626449
2011-01-25extras: add rules for qemu guestsGerd Hoffmann1-0/+5
These patches enable usb autosuspend for the qemu emulated HID devices. This reduces the cpu load for idle guests with a hid device attached because the linux kernel will suspend the usb bus then and qemu can stop running a 1000 Hz to emulate the (active) UHCI controller. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2010-12-10udevd: always create /dev/{char,block}/$major:$minorKay Sievers1-3/+0
2010-11-30rules: revert bsg use until the event ordering problem is sorted outKay Sievers1-14/+0
The bsg devices node are created after the LUN, so we fail in the hotplug case, but succeed at coldplug, and create inconsistent data that way. The bsg device event order will need to be sorted out, by changing the kernel.
2010-11-24rules: drop OSS audio ruleKay Sievers1-1/+0
2010-11-24rules: 78-sound-card - remove specific hardware matches, they do not belong hereKay Sievers1-7/+0
2010-11-04Use ata_id, not scsi_id, on ATAPI devicesDavid Zeuthen1-0/+4
The major benefit here, is that we get the ATAPI device serial number. With SCSI ID we didn't get this since it's not part of the SCSI INQUIRY command. Specifically this means that we get symlinks to empty optical drives, e.g. /dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376 which we didn't get earlier. So this is a major win. Also make ata_id work on CD-ROM devices when using /dev/bsg nodes so this works on both the scsi_device as well as the block device. We do this, basically, by issuing the ATA IDENTIFY PACKET DEVICE command instead of the ATA IDENTIFY command. We also use 16-byte pass-through ATA passthrough instead of 12-byte passthrough to avoid clashing with the MMC BLANK command. This means that we get this output # udevadm info -q all -p /sys/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 P: /devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 E: UDEV_LOG=3 E: DEVPATH=/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 E: DEVTYPE=scsi_device E: DRIVER=sr E: MODALIAS=scsi:t-0x05 E: SUBSYSTEM=scsi E: ID_ATA=1 E: ID_TYPE=cd E: ID_BUS=ata E: ID_MODEL=VBOX_CD-ROM E: ID_MODEL_ENC=VBOX\x20CD-ROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x 20\x20\x20\x20\x20\x20\x20 E: ID_REVISION=1.0 E: ID_SERIAL=VBOX_CD-ROM_VB2-01700376 E: ID_SERIAL_SHORT=VB2-01700376 instead of just # udevadm info -q all -p /sys/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 P: /devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 E: UDEV_LOG=3 E: DEVPATH=/devices/pci0000:00/0000:00:01.1/host3/target3:0:0/3:0:0:0 E: DEVTYPE=scsi_device E: DRIVER=sr E: MODALIAS=scsi:t-0x05 E: SUBSYSTEM=scsi E: ID_SCSI=1 E: ID_VENDOR=VBOX E: ID_VENDOR_ENC=VBOX\x20\x20\x20\x20 E: ID_MODEL=CD-ROM E: ID_MODEL_ENC=CD-ROM\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20 E: ID_REVISION=1.0 E: ID_TYPE=cd Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-10-30Run scsi_id and ata_id on the scsi_device objectDavid Zeuthen1-0/+12
In a multi-initiator setup, the HBA may very well export a SCSI device for a device that another initiator has already logged into. But since another initiator has already logged in, the kernel will not create a block device. Note that this is also the case for some RAID HBAs - for example, the LSI 1068 series cards will export a SCSI device for a disk that is in use by the HBAs RAID engine (no block device will be created here). Running scsi_id and ata_id on the actual SCSI device means that we can inquire the capabilities of the device. For example, we can check whether ID_ATA_FEATURE_SET_SMART and ID_ATA_FEATURE_SET_SMART_ENABLED is set and, if so, periodically poll the SMART status of the disk. Even when other initiators has claimed the disk and if the disk is in use by the RAID engine of the HBA. Note that we run scsi_id and ata_id on /dev/bsg/* nodes - this is safe to do because the scsi core guarantees that the bsg device has been created before the actual add uevent for the scsi_device is emitted. Since the block device is a direct child of the scsi_device we can avoid running scsi_id and ata_id again by simply importing the resulting ID_* properties from the parent. Signed-off-by: David Zeuthen <davidz@redhat.com>
2010-09-21fix various syntax errors in rulesMartin Pitt3-3/+3
2010-07-12rules: remove firewire rules for deprecated driversKay Sievers1-4/+0
2010-07-12rules: add more FireWire IDs: Point Grey IIDC; AV/C + vendor uniqueStefan Richter1-0/+2
1. IIDC cameras from Point Grey use the vendor OUI as Specifier_ID instead of the 1394 TA's OUI but are otherwise fully compliant to the IIDC spec. Their device files should be accessible like those of any other IIDC cameras. 2. Originally, the Software_Version of devices that implement FCP (IEC 61883-1 Function Control Protocol) was meant to be a bitmap of all command sets that an FCP capable unit supports. Bitmap flags are defined for AV/C, CAL, EHS, HAVi, and vendor unique command sets. Software_Version was revised to be a simple identifier instead, and devices that support several command sets were meant to instantiate one unit directory for each command set. Still, some devices with the flags for AV/C and vendor unique command sets combined were released (but apparently no devices with any other flag combinations). These rare but existing AV/C + vendor unique devices need to be accessible just like plain AV/C devices. Side notes: - Many AV/C devices make use of the Vendor Dependent AV/C command, but this is unrelated to vendor unique FCP command sets. - Here are all standardized FireWire protocol identifiers that I know of, listed as Specifier_ID:Software_Version | specifier | protocol. 0x00005e:0x000001 | IANA | IPv4 over 1394 (RFC 2734) 0x00005e:0x000002 | IANA | IPv6 over 1394 (RFC 3146) 0x00609e:0x010483 | INCITS | SBP-2 (or SCSI command sets over SBP-3) 0x00609e:0x0105bb | INCITS | AV/C over SBP-3 0x00a02d:0x010001 | 1394 TA | AV/C (over FCP) 0x00a02d:0x010002 | 1394 TA | CAL 0x00a02d:0x010004 | 1394 TA | EHS 0x00a02d:0x010008 | 1394 TA | HAVi 0x00a02d:0x014000 | 1394 TA | Vendor Unique 0x00a02d:0x014001 | 1394 TA | Vendor Unique and AV/C (over FCP) 0x00a02d:0x000100 | 1394 TA | IIDC 1.04 0x00a02d:0x000101 | 1394 TA | IIDC 1.20 0x00a02d:0x000102 | 1394 TA | IIDC 1.30 0x00a02d:0x0A6BE2 | 1394 TA | DPP 1.0 0x00a02d:0x4B661F | 1394 TA | IICP 1.0 For now we are only interested in udev rules for AV/C and IIDC. Reported-by: Damien Douxchamps <ddsf@douxchamps.net> (Point Grey IIDC ID) Reported-by: Clemens Ladisch <clemens@ladisch.de> (AV/C + vendor unique ID) Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
2010-07-0860-persistent-storage-tape.rules: make own by-path symlink for nst tapesHarald Hoyer1-1/+1
2010-07-0760-persistent-storage-tape: s/path_id.sh/path_id/Harald Hoyer1-1/+1
2010-07-07rules: tape - remove WAIT_FOR instruction and don't export BSG_DEVKay Sievers1-2/+2
2010-06-29Add virtio-blk by-id rules based on 'serial' attributeRyan Harper1-0/+4
Using virtio-blk serial attributes add rules to extract drive serial numbers and generate by-id links for the block device and partitions. With these rules added, we now see the following symlinks in disk/by-id % ls -al /dev/disk/by-id | grep vdb lrwxrwxrwx. 1 root root 9 Jun 1 22:09 virtio-QM00001 -> ../../vda lrwxrwxrwx. 1 root root 10 Jun 1 22:09 virtio-QM00001-part1 -> ../../vda1 Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
2010-06-21delete last distro specific rulesKay Sievers3-122/+0
2010-06-17Fix usb printer rule for multiple USB interfacesMartin Pitt1-1/+1
Commit f61e72d89 failed to match for the case where an USB printer has multiple interfaces, such as ID_USB_INTERFACES=:ffffff:070102: Thanks to Pablo Mazzini for spotting this!
2010-05-30rules: add misc/30-kernel-compat.rulesKay Sievers1-0/+100
2010-05-30rules: SUSE - move last distro rule to packageKay Sievers1-4/+0
2010-05-30rules: rename packages -> archKay Sievers3-0/+0
2010-05-28rules: delete pilot rules and remove redhat directoryKay Sievers1-4/+0
2010-05-27rules: add -v to modprobe calls to be able see what will be loadedKay Sievers1-7/+7
2010-05-2740-redhat.rules: removed fileHarald Hoyer1-27/+0
2010-05-25rules: mount fuse control filesystemKay Sievers1-2/+3
2010-05-25rules: optical drives - use ID_CDROM_MEDIA_TRACK_COUNT_DATAKay Sievers1-2/+2
We should not access non-data optical media, ans skip things like blkid. It will cause errors for some drives. https://bugzilla.kernel.org/show_bug.cgi?id=15757
2010-05-20create static nodes provided by kernel modules to allow module autoloadingKay Sievers1-5/+3
2010-05-14rules: SUSE - delete device-mapper rulesKay Sievers1-22/+0
2010-05-03rules: Gentoo - remove old devfs compat rulesMatthias Schwarzott1-6/+0
2010-04-13rules: call modprobe on all events but "remove"Kay Sievers2-4/+1
2010-04-12replace "add|change" with "!remove"Kay Sievers8-8/+8
2010-04-12rules: we do not have static devices which are renamedKay Sievers1-1/+0
2010-04-12rules: delete outdated packagees rulesKay Sievers6-62/+0
2010-03-22rules: virtio - fix is to check if the 'name' attribute is presentAmit Shah1-1/+1
Fix provided by Harald Hoyer. Signed-off-by: Amit Shah <amit.shah@redhat.com>
2010-03-16rules: input - create by-path/ links for pci devicesMarco d'Itri1-1/+1
2010-03-04Fix virtio-ports rule to use $attr instead of $ATTRAmit Shah1-1/+1
Newer udev versions don't understand $ATTR. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
2010-01-21rules: Add symlink rule for virtio portsAmit Shah1-0/+3
virtio ports spawned by the virtio_console.c driver can have 'names' assigned to them by hosts. The ports are distinguishable using these names. Make a rule to create a symlink to the chardev associated for a port with a name. The symlink created is: /dev/virtio-ports/org.libvirt.console0 -> /dev/vport0p0 if the first port for the first device was given a name of 'org.libvirt.console0'. Signed-off-by: Amit Shah <amit.shah@redhat.com>
2010-01-21rulews: suse - add do-not-load-KMS-modules rulesEgbert Eich1-0/+4
2009-12-15rules: add "block" match to floppy ruleKay Sievers1-1/+1
2009-12-15floppy: fix rule to create additional floppy device nodesKay Sievers1-1/+0
2009-12-04Export ID_WWN_VENDOR_EXTENSION and ID_WWN_WITH_EXTENSIONDavid Zeuthen1-2/+2
Some SCSI devices use the same WWN and have a WWN extension that we need to take into account when creating the /dev/disk/by-id/wwn symlinks. Thus, introduce ID_WWN_WITH_EXTENSION. This property will contain either the WWN (if no extension is present) or the WWN with the vendor extension appended. Example: # /lib/udev/ata_id/ata_id --export /dev/sda |grep WWN ID_WWN=0x5001517387d61905 ID_WWN_WITH_EXTENSION=0x5001517387d61905 # /lib/udev/scsi_id --whitelisted --export -d /dev/sdb |grep WWN ID_WWN=0x600508b400105df7 ID_WWN_VENDOR_EXTENSION=0x0000e00000d80000 ID_WWN_WITH_EXTENSION=0x600508b400105df70000e00000d80000 # /lib/udev/scsi_id --whitelisted --export -d /dev/sdc |grep WWN ID_WWN=0x600508b400105df7 ID_WWN_VENDOR_EXTENSION=0x0000e00000db0000 ID_WWN_WITH_EXTENSION=0x600508b400105df70000e00000db0000 Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-30input: Deprecate ENV{ID_CLASS}Martin Pitt1-15/+15
The ID_CLASS property on input devices has been replaced by the more accurate set of flags ID_INPUT_{KEYBOARD,KEYS,MOUSE,TOUCHPAD,TABLET,JOYSTICK}. Rewrite 60-persistent-input.rules to use the new properties now and not export ID_CLASS any more, since it is not used by anything else any more. Add note about migration to NEWS, in case this is being used in custom rules.
2009-11-30extras: Add input_idMartin Pitt1-11/+7
input_id probes input/event devices for their class (keyboard, keys, mouse, touchpad, tablet, joystick). This is based on the corresponding hal code in hald/linux/device.c, input_test_{abs,rel,...}. This should provide enough functionality to get hal-less X.org working (which in particular needs to know exactly which devices are touchpads). Replace the brittle hacks in 60-persistent-input.rules with checking for the new ID_INPUT_* flags. This keeps the old ID_CLASS properties for now (but they are to be removed later on). Note: The current code has several hacks still, which are to be replaced with proper libudev calls later on.
2009-11-25Also create /dev/disk/by-id/wwn-0x..-part%n symlinks for partitionsDavid Zeuthen1-0/+1
# ls -l /dev/disk/by-id/wwn-0x500 wwn-0x500000e01b83f360 wwn-0x50014ee25578924f-part1 wwn-0x500000e01b83f440 wwn-0x50014ee25578924f-part2 wwn-0x500000e01b83f520 wwn-0x50014ee2aabdc41b wwn-0x500000e01b843d90 wwn-0x50014ee2aabdc41b-part1 wwn-0x5000c50016359fd1 wwn-0x50014ee2aabdc41b-part2 wwn-0x50014ee0016eb4f5 wwn-0x5001517958cabd77 wwn-0x50014ee0016eb572 wwn-0x5001517958cabd77-part1 wwn-0x50014ee055d524e2 wwn-0x5001517958cabd77-part2 wwn-0x50014ee055d524e2-part1 wwn-0x5001517958d6a74e wwn-0x50014ee055d524e2-part2 wwn-0x5001517958d6a74e-part1 wwn-0x50014ee1003d9c50 wwn-0x5001517958d6a74e-part2 wwn-0x50014ee1003d9c50-part1 wwn-0x50024e9200c0c693 wwn-0x50014ee1003d9c50-part2 wwn-0x50024e9200c0c694 wwn-0x50014ee1aac30d4e wwn-0x50024e9200c0c6ae wwn-0x50014ee1aac30d4e-part1 wwn-0x50024e9200c0c6af wwn-0x50014ee1aac30d4e-part2 wwn-0x50024e9200c0c6b0 wwn-0x50014ee25578924f wwn-0x50024e9200c0c6b1 Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-25Create /dev/disk/by-id/wwn-0x... symlinksDavid Zeuthen1-0/+3
Now that both ata_id and scsi_id exports the World Wide Name in the ID_WWN property, use this to create persistent symlinks. Example /dev/disk/by-id/wwn-0x500000e01b83f360 -> ../../sdn /dev/disk/by-id/wwn-0x500000e01b83f440 -> ../../sdm Signed-off-by: David Zeuthen <davidz@redhat.com>
2009-11-19rules: remove support for IDE (hd*) devicesKay Sievers2-11/+0
The kernel IDE drivers get deprecated now: http://article.gmane.org/gmane.linux.ide/43151 Almost everybody has switched over to libata devices long ago. Recent services do not work with the now deprecated IDE drivers at all and require libata drivers and SCSI infrastructure. Systems who care about the old stuff need to add the rules to the compat rules.
2009-11-12rules: set mode of floppy device nodes to 0660Kay Sievers1-1/+1
2009-11-09Revert "sound: include ALSA sound card id in /dev/snd/by-id/ links"Lennart Poettering1-3/+3
This reverts commit 68bffc607f7f0414fee77fa481d9c133ce0798e9. After discussing this with Kay we decided to drop this again as by-id links only make sense for devices that have a unique serial id. If they don't any attempts to make them unique have the side effect of nourishing assumptions by users that cannot be met, as the by-id device link of a device could differ depending on the history of simultaneously plugged in device. So, to make sure that all device nodes follow the same rules for by-id/ symlinks, drop this patch again.
2009-11-09sound: include ALSA sound card id in /dev/snd/by-id/ linksLennart Poettering1-3/+3
If two USB sound cards that have the same serial number are plugged in make sure the by-id/ device node symlink is unique at least during runtime, by including the ALSA card id in the symlink name. This is a followup to ed1b2d9fc7.
2009-11-05sound: include ALSA sound card id in ID_ID propertyLennart Poettering1-2/+2
If two USB sound cards that have the same serial number are plugged in make sure ID_ID is unique at least during runtime, by including the ALSA card id in the ID_ID string. Fixes issues like this one: http://pulseaudio.org/ticket/661
2009-10-21rules: Gentoo updateMatthias Schwarzott1-0/+7
2009-10-0550-udev-default.rules: fix printer MODEMartin Pitt1-1/+1
Prefix with a 0 to be consistent with other rules. https://launchpad.net/bugs/438114
2009-09-30make raw USB printer devices world-readable againMartin Pitt1-1/+1
Commit f61e72d8 made raw USB printers accessible for the lp group. However, chmoding them to 0660 is a bit over-zealous, since by default raw USB devices are world-readable. Not being so breaks lsusb unnecessarily. Now set permissions to 0664.
2009-09-20fix previous commit for CD detectionMartin Pitt1-1/+1
Do not run blkid twice. *brown paperbag*
2009-09-20fix single-session CD detectionMartin Pitt1-1/+3
ID_CDROM_MEDIA_SESSION_LAST_OFFSET is not set for CDs with only a single session (i. e. for the vast majority of CDs out there). The previous rules ran blkid with invalid arguments for these, causing CD detection to fail in DK-disks and gvfs. Now check whether we actually have ID_CDROM_MEDIA_SESSION_LAST_OFFSET, and if not, call blkid without -O for specifying the offset. Many thanks to Maxim Levitsky for tracking this down! https://launchpad.net/bugs/431055
2009-09-19rules: Gentoo updateMatthias Schwarzott1-0/+58
2009-09-16rules: drop almost all NAME= keysKay Sievers2-42/+23
The drivers in kernel 2.6.31 supply the names for custom node names if needed.
2009-09-16rules: remove remaining NAME="%k"Kay Sievers1-4/+4
2009-09-09sound: recognize saa7134 TV card sound devices as TV cardsLennart Poettering1-1/+2
2009-09-09simplify "symlink name stack"Kay Sievers1-2/+2
With well defined and kernel-supplied node names, we no longer need to support a possible stack of conflicting symlinks and node names. Only symlinks with identical names can be claimed by multiple devices. This shrinks the former /dev/.udev/names/ significantly. Also the /dev/{block,char}/MAJ:MIN" links are excluded from the name stack - they are unique and can not conflict.
2009-09-04make raw USB printer devices accessible for lpMartin Pitt1-0/+4
Starting from version 1.4, cups now uses libusb and printer USB devices instead of the usblp generated /dev/usb/lpX ones. In order to not require the cups USB backend to run as root now, change raw USB printer devices to be root:lp 0660, similar to usblpX devices. This might also enable the hplip backend to not run as root, since this has always used raw device nodes. https://launchpad.net/bugs/420015
2009-09-01rules: sound - do not use /usr/bin/envMarco d'Itri1-1/+1
The C version of path_id does not look at the environment anymore, so there is no reason to empty it.
2009-08-31rules: suse - use NAME for mapper/controlKay Sievers1-1/+1
2009-08-16rules: rfkill has no group, so use 0644Kay Sievers1-1/+1
Thanks to Marco d'Itri<md@linux.it> for noticing.
2009-08-08fix spellingAlan Jenkins1-1/+1
Fix spelling in docbook comments, code comments, and a local variable name. Thanks to "ispell -h" for docbook HTML and "scspell" for source code. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-08-07Merge libudev, udev, and the unconditional extras in a single Makefile.am.Diego Elio 'Flameeyes' Pettenò1-27/+0
Instead of using multiple recursive Makefile.am files, use a single Makefile.am that sets and builds all the basic suite of libraries and binaries for udev. This reduces the number of files in the source tree, and also reduces drastically the build time when using parallel-make. With this setup, all the compile steps will be executed in parallel, and just the linking stage will be (partially) serialised on the libraries creation.
2009-08-06re-enable failed event trackingKay Sievers1-1/+1
It did not work for the last couple of releases. If RUN{record_failed}+="..." is given, a non-zero execution will mark the event as failed. Recorded failed events can be re-triggered with: udevadm trigger --type=failed The failed tracking _might_ be useful for things which might not be ready to be executed at early bootup, but a bit later when the needed dependencies are available. In many cases though, it indicates that something is used in a way it should not.
2009-08-05rules: exclude digitizers from joystick classAnssi Hannula1-2/+2
Exclude digitizers and similar devices from ID_CLASS joystick by checking modalias for BTN_DIGI. This was also done for linux kernel joydev interface in linux commit d07a9cba6be5c0e947afc1014b5a62182a86f1f1.
2009-07-23rules: serial - fix path_id callKay Sievers1-1/+1
2009-07-01rules: set group ownership of new firewire driver device filesStefan Richter1-1/+4
The newer firewire-core driver exposes per-device character device files, called /dev/fw[0-9]*, in contrast to the older raw1394, video1394, dv1394 drivers which created one global file or per-controller files. This allows to set ownership, permissions, or/ and access control lists for each device file based on device type markers obtained from sysfs. The "units" attribute which is used for this purpose has become available in Linux 2.6.31(-rc1) by commit 0210b66dd88a2a1e451901b00378a2068b6ccb35. The added rules match identifiers of - IIDC devices: industrial cameras and some webcams, - AV/C devices: camcorders, set-top boxes, TV sets, audio devices, and similar devices. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
2009-06-28rules: make ata_id properties the default for all ATA block devicesKay Sievers1-3/+9
We need to call ata_id as the default for libata sd* devices. We want ID_BUS=ata, and the ATA device proeprties, and be independent of the SCSI emulation with the truncated values. The links in /dev/disk/by-id/{ata-*,scsi-*} are still the same.
2009-06-28ata_id: sync ID_SERIAL(_SHORT) with other *_id toolsKay Sievers1-2/+2
ID_SERIAL is the full serial number used for the links, ID_SERIAL_SHORT is the device serial number.
2009-06-17rules: do not install usb-id/pci-id rules when --disable-extras is usedKay Sievers1-3/+7
2009-06-17rules: Gentoo updateMatthias Schwarzott1-0/+1
2009-06-17rules: remove MMC rule, 2.6.30 has the modaliasKay Sievers1-2/+0
2009-06-17cleanup ./configure installation directory optionsKay Sievers1-1/+0
2009-06-16rules: tty/net - move from udev-extrasDan Williams3-0/+30
2009-06-16rules: sound - move from udev-extraLennart Poettering3-0/+108
2009-06-16v4l_id: move from udev-extrasKay Sievers2-18/+0
2009-06-16rules: Gentoo updateMatthias Schwarzott1-0/+1
2009-06-14rules: Gentoo updateMatthias Schwarzott1-53/+6
2009-06-10rules: remove scsi ch module loading ruleKay Sievers1-1/+0
2009-06-08path_id: delete old shell scriptKay Sievers1-2/+0
Removed with this is SAS disk support which never really worked properly, and legacy IDE disk support, which can be re-implemented if needed.
2009-06-08path_id: add iscsi supportKay Sievers1-2/+2
2009-06-08path_id: handle fibre channelKay Sievers1-2/+2
2009-06-06path_id: implement in C using libudevKay Sievers2-2/+4
2009-06-05rules: make RFKILL control device world readableMarcel Holtmann1-0/+1
2009-06-04rules: do not call path_id for virtual devicesKay Sievers2-2/+2
2009-05-22rules: add SUBSYSTEM match to scsi rulesKay Sievers2-4/+4
On Fri, May 22, 2009 at 16:15, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote: > I've been looking at what is responsible for all the path lookup activity in > coldplug. On my debian stable system, it looks like every device gets its > parent looked up in sysfs. I think this is due to SUBSYSTEMS matches. > > I see the udev default rules are different, but it looks like they still > test for SUBSYSTEMS on every single device. Should we add SUBSYSTEM="scsi_generic" > to these three rules?
2009-05-14Revert "rules: v4l do not mix vbi and video nodes"Kay Sievers1-2/+1
This reverts commit 6205f1186e4980544ea425d31770358d1b2579e4.
2009-05-13rules: v4l do not mix vbi and video nodesKay Sievers1-1/+2
2009-05-11delete vol_id and require util-linux-ng's blkidKay Sievers3-4/+4
2009-05-05rules: fix ieee1394 rulesKay Sievers1-2/+2
2009-05-04oops, removed ppp entry from rules got committedKay Sievers1-0/+1
2009-05-04handle devtmpfs nodesKay Sievers1-1/+0
UDev follows the kernel given name, and re-uses the kernel created device node. If the kernel and spcecified udev rules disagree, the udev specified node node is created and the kernel-created on is deleted.
2009-05-03rules: remove initramfs commentKay Sievers1-2/+1
2009-05-01rules: add "event*" matchKay Sievers1-1/+1
2009-04-28rules: add rfcomm* to group dialoutKay Sievers1-1/+1
https://bugs.launchpad.net/bugs/368109
2009-04-27rules: input - fix commentsKay Sievers1-2/+4
2009-04-27rules: input - add links for USB/platform non-kbd/mouse devicesKay Sievers1-9/+15
2009-04-24rules: create /dev/cpu/<n>/cpuid world readableAndre Przywara1-1/+1
I don't see any security implications, to be actually useful, /dev/cpu/<n>/cpuid should be world readable. The cpuid instruction can be called from userspace anyway, so there is nothing to hide. The device does not support any write operation, so 0444 should suffice. Signed-off-by: Andre Przywara <andre.przywara@amd.com>
2009-04-21cdrom_id: add and use ID_CDROM_MEDIA to decide if we run vol_idKay Sievers1-1/+1
Some broken mobile phones offer a faked cdrom drive with a media without any tracks.
2009-04-16rules: remove DVB shell scriptKay Sievers1-1/+0
2009-03-29send monitor events back to netlink socketKay Sievers1-4/+0
Instead of of our own private monitor socket, we send the processed event back to our netlink socket, to the multicast group 2 -- so any number of users can listen to udev events, just like they can listen to kernel emitted events on group 1.
2009-03-25rules: replace IDE driver with media matchKay Sievers1-1/+1
2009-03-24rules: serial - support ttyACM devicesKay Sievers1-4/+5
2009-03-23rules: remove ram* from persisten disk links blacklistKay Sievers1-1/+1
2009-03-23rules: exclude mtd* from persistent disk linksDavid Brownell1-1/+1
2009-03-22rules: rename ide-floppy to ide-gdBorislav Petkov1-1/+1
The driver's name changed in the 2.6.28 timeframe.
2009-03-18rules: fix extra quote in 50-udev-default.rulesKay Sievers1-1/+1
Patch from Gerardo Exequiel Pozzi.
2009-03-16rules: md-raid.rules fixMichal Soltys1-0/+3
md/array_state in case of partition doesn't exist, so all uevents for partitions didn't execute any SYMLINK rules Signed-off-by: Michal Soltys <soltys@ziu.info>
2009-03-05udevd: switch watch symlinks to devpathKay Sievers1-0/+1
Some broken tools get confused following links to /sys, switch to link targets carrying the devpath instead of the syspath, like the queue links.
2009-03-04rules: Fedora updateKay Sievers1-1/+0
2009-02-26usb_id: add ID_USB_INTERFACES=:0e0100:0e0200:010100:010200:Kay Sievers3-3/+3
2009-02-16rules: include loop block devices in persistent linksKay Sievers1-1/+1
2009-02-13rules: add "watch" option to dm and md rulesKay Sievers2-0/+2
2009-02-11rules: move OPTIONS to separate ruleKay Sievers1-2/+5
A failing IMPORT+ match would prevent the OPTIONS+= action from being applied.
2009-02-11rules: update persistent storage rules to use inotify watchesScott James Remnant1-2/+2
2009-02-05rules: fix md "change"/"remove" handlingKay Sievers1-0/+1
On Thu, Feb 5, 2009 at 08:43, Harald Hoyer <harald@redhat.com> wrote: > Radek Vykydal <rvykydal@redhat.com> encountered a problem with md devices. > If the raid is about to be removed a "change" and "remove" event is sent.
2009-01-30rules: dm - add escape for uuid links with whitespaceKay Sievers1-1/+1
2009-01-27rules: Gentoo updateMatthias Schwarzott2-30/+17
2009-01-15rules: add drm devices to group "video"Kay Sievers1-0/+1
https://bugs.launchpad.net/bugs/317430
2009-01-10rules: fix typo in ide cd ruleKay Sievers1-1/+1
Thanks to Scott, who found that.
2009-01-10fix naming for tape nst devices in /dev/tape/by-path/Lennart Poettering1-1/+1
$env{ID_PATH} includes the "-nst" suffix anyway, so we shouldn't append it a second time as part of the rule creating the device file symlink. Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-05rules: zaptel - add "dialout" groupKay Sievers1-6/+5
2009-01-05rules: reorder block rulesKay Sievers1-10/+12
2009-01-04rules: Ubuntu merge - s/uucp/dialout/Kay Sievers3-5/+5
2009-01-03rules: replace DVB shell script ruleKay Sievers1-2/+3
2009-01-03rules: Ubuntu merge - use group "tape"Kay Sievers1-7/+14
2009-01-03rules: Ubuntu merge - use group "cdrom"Kay Sievers1-8/+9
2009-01-02rules: input - make sure needed variables are setKay Sievers1-2/+2
2008-12-26rules: provide /dev/raw/rawctlKay Sievers1-1/+1
On Fri, Dec 26, 2008 at 01:26, Karel Zak <kzak@redhat.com> wrote: > On Fri, Dec 26, 2008 at 12:39:16AM +0100, Kay Sievers wrote: >> On Fri, Dec 26, 2008 at 00:26, Karel Zak <kzak@redhat.com> wrote: >> > The upstream raw(8) command supports /dev/rawctl and also >> > /dev/raw/rawctl. I think it makes more sense to use raw/rawctl when >> > you have all your raw devices in raw/ subdirectory (e.g. /dev/raw/raw<N>). >> >> The raw tool looks for /dev/rawctl first and the fallback to >> /dev/raw/rawctl is named DEVFS_*. Should we turn that order around and >> remove the devfs notion from the raw tool and let udev create a >> dev/raw/rawctl node? > > Yeah. Fixed, committed and pushed. > > $ strace -e open ./raw > open("/dev/raw/rawctl", O_RDWR) = -1 ENOENT (No such file or directory) > open("/dev/rawctl", O_RDWR) = -1 ENOENT (No such file or directory) > > I have also removed the #ifdef OLD_RAW_DEVS (/dev/raw<N>) junk.
2008-12-22rules: isdn - remove /dev/isdn/capi20 symlinkKay Sievers1-1/+1
2008-12-22rules: put alsa in group "audio"Kay Sievers1-0/+1
2008-12-22rules: remove /dev/dsp /dev/audioKay Sievers1-2/+0
2008-12-22rules: second round merging with Ubuntu rulesKay Sievers1-10/+10
2008-12-22rules: do not put raw1394 in "video" groupKay Sievers1-1/+0
A note on /dev/raw1394's security implications: 1. You cannot access local memory through raw1394, except for ROMs and CSRs that are exposed to other nodes any way. 2. It is extremely hard to manipulate data on attached SBP-2 devices (FireWire storage devices). 3. You can disturb operation of the FireWire bus, e.g. creating a DoS situation for audio/video applications, for SBP-2 devices, or eth1394 network interfaces. 4. If another PC is attached to the FireWire bus, it may be possible to read or overwrite the entire RAM of that remote PC. This depends on the PC's configuration. Most FireWire controllers support this feature (yes, it's not a bug, or at least wasn't intended to be one...) but not all OSs enable the feature. Actually, a cheap setup to achieve #1 by #4 is to have two FireWire controllers in the PC and connect them. https://bugs.launchpad.net/ubuntu/+source/kino/+bug/6290/comments/21
2008-12-22rules: remove legacy symlinksKay Sievers1-11/+0
2008-12-21rules: rtc - create rtc compat link only for cmos type rtcKay Sievers1-2/+1
2008-12-21rules: remove /dev/raw/raxctl symlink, it's a devfs leftoverKay Sievers1-1/+1
2008-12-21rules: more changes toward Ubuntu rules mergeKay Sievers1-5/+5
dv1394*: no kernel name symlink lp*: no par* symlink hwrng: no kernel name symlink
2008-12-21rules: more changes toward Ubuntu rules mergeKay Sievers1-6/+7
specialix_rioctl: no kernel name symlink specialix_sxctl: no kernel name symlink bus/usb: 0644 -> 0664 ppdev: lp dri: 0666 -> 0660 js: no kernel name symlink
2008-12-19rules: first simple step merging with Ubuntu rulesKay Sievers2-10/+9
2008-12-19rules: remove ide-scsiKay Sievers1-1/+0
2008-12-09rules: add "do not edit header"Kay Sievers1-0/+2
2008-12-09rules: move aoe rules to default rules fileKay Sievers2-10/+2
2008-12-09rules: add rules for AoE devicesRyan Thomas1-0/+9
In the interest of standardizing udev rules, please consider the following patch that adds udev rules for the ATA over Ethernet character and block devices. The aoe module has been a long-time member of the kernel and needs inclusion in the standard udev rules.
2008-12-06make: do not delete autotools generated file with distcleanKay Sievers1-4/+0
[...] running the command `make maintainer-clean' should not delete `configure' even if `configure' can be remade using a rule in the Makefile. More generally, `make maintainer-clean' should not delete anything that needs to exist in order to run `configure' and then begin to build the program. This is the only exception; `maintainer-clean' should delete everything else that can be rebuilt.
2008-12-04make: install serial rules fileKay Sievers1-0/+1
2008-12-04rules: add persistent /dev/serial/{by-id,by-path} rulesKay Sievers1-0/+19
$ tree /dev/serial/ /dev/serial/ |-- by-id | |-- usb-067b_2303-if00-port0 -> ../../ttyUSB0 | |-- usb-FTDI_FT232R_USB_UART_A7005uBP-if00-port0 -> ../../ttyUSB3 | |-- usb-HUAWEI_Technology_HUAWEI_Mobile-if00-port0 -> ../../ttyUSB1 | `-- usb-HUAWEI_Technology_HUAWEI_Mobile-if01-port0 -> ../../ttyUSB2 `-- by-path |-- pci-0000:00:1d.0-usb-0:1:1.0-port0 -> ../../ttyUSB3 |-- pci-0000:00:1d.7-usb-0:2.2.2:1.0-port0 -> ../../ttyUSB0 |-- pci-0000:00:1d.7-usb-0:2.3:1.0-port0 -> ../../ttyUSB1 `-- pci-0000:00:1d.7-usb-0:2.3:1.1-port0 -> ../../ttyUSB2 $ tree /dev/serial/ /dev/serial/ |-- by-id | |-- usb-Inside_Out_Networks_Edgeport_4_04-01-006467-if00-port0 -> ../../ttyUSB0 | |-- usb-Inside_Out_Networks_Edgeport_4_04-01-006467-if00-port1 -> ../../ttyUSB1 | |-- usb-Inside_Out_Networks_Edgeport_4_04-01-006467-if00-port2 -> ../../ttyUSB2 | |-- usb-Inside_Out_Networks_Edgeport_4_04-01-006467-if00-port3 -> ../../ttyUSB3 | |-- usb-Keyspan__a_division_of_InnoSys_Inc._USB_4-port_Serial_Adapter-if00-port0 -> ../../ttyUSB8 | |-- usb-Keyspan__a_division_of_InnoSys_Inc._USB_4-port_Serial_Adapter-if00-port1 -> ../../ttyUSB9 | |-- usb-Keyspan__a_division_of_InnoSys_Inc._USB_4-port_Serial_Adapter-if00-port2 -> ../../ttyUSB10 | |-- usb-Keyspan__a_division_of_InnoSys_Inc._USB_4-port_Serial_Adapter-if00-port3 -> ../../ttyUSB11 | `-- usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0 -> ../../ttyUSB7 `-- by-path |-- pci-0000:00:1d.2-usb-0:1.3:1.0-port0 -> ../../ttyUSB7 |-- pci-0000:00:1d.7-usb-0:6.1.4.1:1.0-port0 -> ../../ttyUSB4 |-- pci-0000:00:1d.7-usb-0:6.1.4.1:1.0-port1 -> ../../ttyUSB5 |-- pci-0000:00:1d.7-usb-0:6.1.4.1:1.0-port2 -> ../../ttyUSB6 |-- pci-0000:00:1d.7-usb-0:6.1.4.4:1.0-port0 -> ../../ttyUSB0 |-- pci-0000:00:1d.7-usb-0:6.1.4.4:1.0-port1 -> ../../ttyUSB1 |-- pci-0000:00:1d.7-usb-0:6.1.4.4:1.0-port2 -> ../../ttyUSB2 |-- pci-0000:00:1d.7-usb-0:6.1.4.4:1.0-port3 -> ../../ttyUSB3 |-- pci-0000:00:1d.7-usb-0:6.3:1.0-port0 -> ../../ttyUSB8 |-- pci-0000:00:1d.7-usb-0:6.3:1.0-port1 -> ../../ttyUSB9 |-- pci-0000:00:1d.7-usb-0:6.3:1.0-port2 -> ../../ttyUSB10 `-- pci-0000:00:1d.7-usb-0:6.3:1.0-port3 -> ../../ttyUSB11
2008-12-03rules: fix isdn rulesKay Sievers1-3/+2
On Tue, Dec 2, 2008 at 21:07, Matthias Schwarzott <zzam@gentoo.org> wrote: > It seems that the rules related to capi devices are not correct: > > KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" > KERNEL=="capi*", NAME="capi/%n" > > Changing the second rule to match only on KERNEL=="capi[0-9]*" is reported to > make it work. > So I can only guess that the problem is the second rule overwriting the NAME > set by the first one.
2008-12-02rules: ATA_COMPAT do not try to match on sr*, it will never have vendor ATAKay Sievers1-1/+1
2008-11-28rules: infiniband.rules -> 40-infiniband.rulesKay Sievers1-0/+0
2008-11-28rules: add usb device nodesPiter PUNK1-0/+5