source: udev-config/55-lfs.rules@ 65fee99

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 12.2 12.2-rc1 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 65fee99 was 78c5b5d, checked in by Matthew Burgess <matthew@…>, 15 years ago

Remove block rule as it only set default permissions.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8878 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.1 KB
Line 
1# /etc/udev/rules.d/55-lfs.rules: Rule definitions for LFS.
2
3# Core kernel devices
4
5# override both of these
6KERNEL=="random", MODE="0444"
7KERNEL=="urandom", MODE="0444"
8
9KERNEL=="aio", MODE="0444"
10KERNEL=="kmsg", MODE="0600"
11KERNEL=="rtc", MODE="0666"
12
13# Comms devices
14
15KERNEL=="ippp[0-9]*", GROUP="dialout"
16KERNEL=="isdn[0-9]*", GROUP="dialout"
17KERNEL=="isdnctrl[0-9]*", GROUP="dialout"
18KERNEL=="dcbri[0-9]*", GROUP="dialout"
19
20# ALSA devices go in their own subdirectory
21
22KERNEL=="controlC[0-9]*", GROUP="audio", NAME="snd/%k"
23KERNEL=="hwC[0-9]*D[0-9]*", GROUP="audio", NAME="snd/%k"
24KERNEL=="pcmC[0-9]*D[0-9]*[cp]", GROUP="audio", NAME="snd/%k"
25KERNEL=="midiC[0-9]*D[0-9]*", GROUP="audio", NAME="snd/%k"
26KERNEL=="timer", GROUP="audio", NAME="snd/%k"
27KERNEL=="seq", GROUP="audio", NAME="snd/%k"
28
29# Sound devices
30
31KERNEL=="admmidi*", GROUP="audio"
32KERNEL=="adsp*", GROUP="audio"
33KERNEL=="aload*", GROUP="audio"
34KERNEL=="amidi*", GROUP="audio"
35KERNEL=="amixer*", GROUP="audio"
36KERNEL=="audio*", GROUP="audio"
37KERNEL=="dmfm*", GROUP="audio"
38KERNEL=="dmmidi*", GROUP="audio"
39KERNEL=="dsp*", GROUP="audio"
40KERNEL=="midi*", GROUP="audio"
41KERNEL=="mixer*", GROUP="audio"
42KERNEL=="music", GROUP="audio"
43KERNEL=="sequencer*", GROUP="audio"
44
45# Input devices
46
47# override MODE on these four
48KERNEL=="mice", MODE="0644", SYMLINK+="mouse"
49KERNEL=="mouse*", MODE="0644"
50KERNEL=="event*", MODE="0644"
51KERNEL=="ts*", MODE="0644"
52
53KERNEL=="psaux", MODE="0644"
54
55# DRI devices are managed by the X server, so prevent udev from creating them
56
57KERNEL=="card*", OPTIONS+="ignore_device"
58
59# Video devices
60
61KERNEL=="fb[0-9]*", GROUP="video"
62
63# Storage/memory devices
64
65# dmsetup and lvm2 related programs create devicemapper devices so we prevent
66# udev from creating them
67
68KERNEL=="dm-*", OPTIONS+="ignore_device"
69
70# Override floppy devices
71KERNEL=="fd[0-9]", ACTION=="add|change", ATTRS{cmos}=="?*", \
72 RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0660 -G floppy $root/%k"
Note: See TracBrowser for help on using the repository browser.