summaryrefslogtreecommitdiff
path: root/rules/rules.d/50-udev-default.rules
AgeCommit message (Collapse)Author
2010-12-10udevd: always create /dev/{char,block}/$major:$minorKay Sievers
2010-11-24rules: drop OSS audio ruleKay Sievers
2010-09-21fix various syntax errors in rulesMartin Pitt
2010-07-12rules: remove firewire rules for deprecated driversKay Sievers
2010-07-12rules: add more FireWire IDs: Point Grey IIDC; AV/C + vendor uniqueStefan Richter
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-06-17Fix usb printer rule for multiple USB interfacesMartin Pitt
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-25rules: mount fuse control filesystemKay Sievers
2010-05-20create static nodes provided by kernel modules to allow module autoloadingKay Sievers
2010-04-13rules: call modprobe on all events but "remove"Kay Sievers
2010-04-12rules: we do not have static devices which are renamedKay Sievers
2010-03-22rules: virtio - fix is to check if the 'name' attribute is presentAmit Shah
Fix provided by Harald Hoyer. Signed-off-by: Amit Shah <amit.shah@redhat.com>
2010-03-04Fix virtio-ports rule to use $attr instead of $ATTRAmit Shah
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 Shah
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>
2009-12-15rules: add "block" match to floppy ruleKay Sievers
2009-12-15floppy: fix rule to create additional floppy device nodesKay Sievers
2009-11-19rules: remove support for IDE (hd*) devicesKay Sievers
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 Sievers
2009-10-0550-udev-default.rules: fix printer MODEMartin Pitt
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 Pitt
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-16rules: drop almost all NAME= keysKay Sievers
The drivers in kernel 2.6.31 supply the names for custom node names if needed.
2009-09-09simplify "symlink name stack"Kay Sievers
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 Pitt
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-08-16rules: rfkill has no group, so use 0644Kay Sievers
Thanks to Marco d'Itri<md@linux.it> for noticing.
2009-08-08fix spellingAlan Jenkins
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-07-01rules: set group ownership of new firewire driver device filesStefan Richter
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-05rules: make RFKILL control device world readableMarcel Holtmann
2009-05-22rules: add SUBSYSTEM match to scsi rulesKay Sievers
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-05rules: fix ieee1394 rulesKay Sievers
2009-05-04oops, removed ppp entry from rules got committedKay Sievers
2009-05-04handle devtmpfs nodesKay Sievers
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 Sievers
2009-04-28rules: add rfcomm* to group dialoutKay Sievers
https://bugs.launchpad.net/bugs/368109
2009-04-24rules: create /dev/cpu/<n>/cpuid world readableAndre Przywara
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-16rules: remove DVB shell scriptKay Sievers
2009-03-18rules: fix extra quote in 50-udev-default.rulesKay Sievers
Patch from Gerardo Exequiel Pozzi.
2009-03-05udevd: switch watch symlinks to devpathKay Sievers
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-01-15rules: add drm devices to group "video"Kay Sievers
https://bugs.launchpad.net/bugs/317430
2009-01-10rules: fix typo in ide cd ruleKay Sievers
Thanks to Scott, who found that.
2009-01-05rules: reorder block rulesKay Sievers
2009-01-04rules: Ubuntu merge - s/uucp/dialout/Kay Sievers
2009-01-03rules: replace DVB shell script ruleKay Sievers
2009-01-03rules: Ubuntu merge - use group "tape"Kay Sievers
2009-01-03rules: Ubuntu merge - use group "cdrom"Kay Sievers
2008-12-26rules: provide /dev/raw/rawctlKay Sievers
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: second round merging with Ubuntu rulesKay Sievers
2008-12-22rules: do not put raw1394 in "video" groupKay Sievers
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 Sievers
2008-12-21rules: rtc - create rtc compat link only for cmos type rtcKay Sievers
2008-12-21rules: remove /dev/raw/raxctl symlink, it's a devfs leftoverKay Sievers
2008-12-21rules: more changes toward Ubuntu rules mergeKay Sievers
dv1394*: no kernel name symlink lp*: no par* symlink hwrng: no kernel name symlink