chiark / gitweb /
udev: avoid building selinux parts without have_selinux
[elogind.git] / rules / 50-udev-default.rules
1 # do not edit this file, it will be overwritten on update
2
3 KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
4 KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
5 KERNEL=="ptmx", GROUP="tty", MODE="0666"
6 KERNEL=="tty", GROUP="tty", MODE="0666"
7 KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"
8 KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty"
9
10 # serial
11 KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
12 KERNEL=="mwave", GROUP="dialout"
13 KERNEL=="hvc*|hvsi*", GROUP="dialout"
14
15 # virtio serial / console ports
16 KERNEL=="vport*", ATTR{name}=="?*", SYMLINK+="virtio-ports/$attr{name}"
17
18 # mem
19 KERNEL=="null|zero|full|random|urandom", MODE="0666"
20 KERNEL=="mem|kmem|port|nvram", GROUP="kmem", MODE="0640"
21
22 # input
23 SUBSYSTEM=="input", ENV{ID_INPUT}=="", IMPORT{builtin}="input_id"
24 KERNEL=="mouse*|mice|event*", MODE="0640"
25 KERNEL=="ts[0-9]*|uinput", MODE="0640"
26 KERNEL=="js[0-9]*", MODE="0644"
27
28 # video4linux
29 SUBSYSTEM=="video4linux", GROUP="video"
30 KERNEL=="vttuner*", GROUP="video"
31 KERNEL=="vtx*|vbi*", GROUP="video"
32 KERNEL=="winradio*", GROUP="video"
33
34 # graphics
35 KERNEL=="agpgart", GROUP="video"
36 KERNEL=="pmu", GROUP="video"
37 KERNEL=="nvidia*|nvidiactl*", GROUP="video"
38 SUBSYSTEM=="graphics", GROUP="video"
39 SUBSYSTEM=="drm", GROUP="video"
40
41 # sound
42 SUBSYSTEM=="sound", GROUP="audio", \
43   OPTIONS+="static_node=snd/seq", OPTIONS+="static_node=snd/timer"
44
45 # DVB (video)
46 SUBSYSTEM=="dvb", GROUP="video"
47
48 # FireWire (firewire-core driver: IIDC devices, AV/C devices)
49 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x00010*", GROUP="video"
50 SUBSYSTEM=="firewire", ATTR{units}=="*0x00b09d:0x00010*", GROUP="video"
51 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x010001*", GROUP="video"
52 SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", GROUP="video"
53
54 # 'libusb' device nodes
55 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
56 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id"
57
58 # printer
59 KERNEL=="parport[0-9]*", GROUP="lp"
60 SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
61 SUBSYSTEM=="ppdev", GROUP="lp"
62 KERNEL=="lp[0-9]*", GROUP="lp"
63 KERNEL=="irlpt[0-9]*", GROUP="lp"
64 SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"
65
66 # block
67 SUBSYSTEM=="block", GROUP="disk"
68
69 # floppy
70 SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy"
71
72 # cdrom
73 SUBSYSTEM=="block", KERNEL=="sr[0-9]*", GROUP="cdrom"
74 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
75 KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
76 KERNEL=="pktcdvd", GROUP="cdrom"
77
78 # tape
79 KERNEL=="ht[0-9]*|nht[0-9]*", GROUP="tape"
80 KERNEL=="pt[0-9]*|npt[0-9]*|pht[0-9]*", GROUP="tape"
81 SUBSYSTEM=="scsi_generic|scsi_tape", SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
82
83 # block-related
84 KERNEL=="sch[0-9]*", GROUP="disk"
85 SUBSYSTEM=="scsi_generic", SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
86 KERNEL=="pg[0-9]*", GROUP="disk"
87 KERNEL=="qft[0-9]*|nqft[0-9]*|zqft[0-9]*|nzqft[0-9]*|rawqft[0-9]*|nrawqft[0-9]*", GROUP="disk"
88 KERNEL=="rawctl", GROUP="disk"
89 SUBSYSTEM=="raw", KERNEL=="raw[0-9]*", GROUP="disk"
90 SUBSYSTEM=="aoe", GROUP="disk", MODE="0220"
91 SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
92
93 # network
94 KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
95 KERNEL=="rfkill", MODE="0644"
96
97 # CPU
98 KERNEL=="cpu[0-9]*", MODE="0444"
99
100 KERNEL=="fuse", ACTION=="add", MODE="0666", OPTIONS+="static_node=fuse"
101
102 SUBSYSTEM=="rtc", ATTR{hctosys}=="1", SYMLINK+="rtc"
103 KERNEL=="mmtimer", MODE="0644"
104 KERNEL=="rflash[0-9]*", MODE="0400"
105 KERNEL=="rrom[0-9]*", MODE="0400"
106
107 SUBSYSTEM=="firmware", ACTION=="add", IMPORT{builtin}="firmware"