chiark / gitweb /
import-raw: when downloading raw images, generate sparse files if we can
[elogind.git] / rules / 50-udev-default.rules
1 # do not edit this file, it will be overwritten on update
2
3 SUBSYSTEM=="virtio-ports", KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
4
5 # select "system RTC" or just use the first one
6 SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc"
7 SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"
8
9 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
10 SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
11 ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"
12
13 ACTION!="add", GOTO="default_permissions_end"
14
15 SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"
16 SUBSYSTEM=="tty", KERNEL=="tty", GROUP="tty", MODE="0666"
17 SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
18 SUBSYSTEM=="tty", KERNEL=="sclp_line[0-9]*", GROUP="tty", MODE="0620"
19 SUBSYSTEM=="tty", KERNEL=="ttysclp[0-9]*", GROUP="tty", MODE="0620"
20 SUBSYSTEM=="tty", KERNEL=="3270/tty[0-9]*", GROUP="tty", MODE="0620"
21 SUBSYSTEM=="vc", KERNEL=="vcs*|vcsa*", GROUP="tty"
22 KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
23
24 SUBSYSTEM=="mem", KERNEL=="mem|kmem|port", GROUP="kmem", MODE="0640"
25
26 SUBSYSTEM=="input", GROUP="input"
27 SUBSYSTEM=="input", KERNEL=="js[0-9]*", MODE="0664"
28
29 SUBSYSTEM=="video4linux", GROUP="video"
30 SUBSYSTEM=="misc", KERNEL=="agpgart", GROUP="video"
31 SUBSYSTEM=="graphics", GROUP="video"
32 SUBSYSTEM=="drm", GROUP="video"
33 SUBSYSTEM=="dvb", GROUP="video"
34
35 SUBSYSTEM=="sound", GROUP="audio", \
36   OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
37
38 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
39
40 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
41 SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", GROUP="video"
42 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
43 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video"
44
45 KERNEL=="parport[0-9]*", GROUP="lp"
46 SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
47 SUBSYSTEM=="ppdev", GROUP="lp"
48 KERNEL=="lp[0-9]*", GROUP="lp"
49 KERNEL=="irlpt[0-9]*", GROUP="lp"
50 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
51
52 SUBSYSTEM=="block", GROUP="disk"
53 SUBSYSTEM=="block", KERNEL=="sr[0-9]*", GROUP="cdrom"
54 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
55 KERNEL=="sch[0-9]*", GROUP="cdrom"
56 KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
57 KERNEL=="pktcdvd", GROUP="cdrom"
58
59 SUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
60 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
61 KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
62 KERNEL=="loop-control", GROUP="disk", OPTIONS+="static_node=loop-control"
63 KERNEL=="btrfs-control", GROUP="disk"
64 KERNEL=="rawctl", GROUP="disk"
65 SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", GROUP="disk"
66 SUBSYSTEM=="aoe", GROUP="disk", MODE="0220"
67 SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
68
69 KERNEL=="rfkill", MODE="0664"
70 KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
71
72 KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
73
74 LABEL="default_permissions_end"