summaryrefslogtreecommitdiffstats
path: root/openembedded
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded')
-rw-r--r--openembedded/packages/udev/udev-092/local.rules2
-rw-r--r--openembedded/packages/udev/udev-092/permissions.rules109
-rw-r--r--openembedded/packages/udev/udev_092.bb2
3 files changed, 111 insertions, 2 deletions
diff --git a/openembedded/packages/udev/udev-092/local.rules b/openembedded/packages/udev/udev-092/local.rules
index 445fea92a2..661922dda3 100644
--- a/openembedded/packages/udev/udev-092/local.rules
+++ b/openembedded/packages/udev/udev-092/local.rules
@@ -28,4 +28,4 @@ KERNEL=="rtc0", SYMLINK+="rtc"
28ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" 28ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
29 29
30# Create a symlink to any touchscreen input device 30# Create a symlink to any touchscreen input device
31SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="input:*-e0,1*,3,*k*14A,*a0,1,*18,*", SYMLINK+="input/touchscreen" \ No newline at end of file 31SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="input:*-e0,1*,3,*k*14A,*a0,1,*18,*", SYMLINK+="input/touchscreen0" \ No newline at end of file
diff --git a/openembedded/packages/udev/udev-092/permissions.rules b/openembedded/packages/udev/udev-092/permissions.rules
new file mode 100644
index 0000000000..8da35c3090
--- /dev/null
+++ b/openembedded/packages/udev/udev-092/permissions.rules
@@ -0,0 +1,109 @@
1ACTION!="add", GOTO="permissions_end"
2
3# workarounds needed to synchronize with sysfs
4DEVPATH=="/devices/*", ENV{PHYSDEVBUS}=="?*", WAIT_FOR_SYSFS="bus"
5SUBSYSTEM=="scsi", WAIT_FOR_SYSFS="ioerr_cnt"
6# only needed for kernels < 2.6.16
7SUBSYSTEM=="net", WAIT_FOR_SYSFS="address"
8# only needed for kernels < 2.6.17
9SUBSYSTEM=="net", ENV{PHYSDEVDRIVER}=="?*", WAIT_FOR_SYSFS="device/driver"
10
11# default permissions for block devices
12SUBSYSTEM=="block", GROUP="disk"
13SUBSYSTEM=="block", SYSFS{removable}=="1", GROUP="floppy"
14
15# IDE devices
16BUS=="ide", KERNEL=="hd[a-z]|pcd[0-9]*", DRIVER=="ide-cdrom|pcd", \
17 IMPORT{program}="cdrom_id --export $tempnode"
18ENV{ID_CDROM}=="?*", GROUP="cdrom"
19BUS=="ide", KERNEL=="ht[0-9]*", GROUP="tape"
20BUS=="ide", KERNEL=="nht[0-9]*", GROUP="tape"
21
22# SCSI devices
23BUS=="scsi", SYSFS{type}=="1", GROUP="tape"
24BUS=="scsi", SYSFS{type}=="3", SYSFS{vendor}=="HP", GROUP="scanner"
25BUS=="scsi", SYSFS{type}=="5", GROUP="cdrom"
26BUS=="scsi", SYSFS{type}=="6", GROUP="scanner"
27
28# USB devices
29BUS=="usb", KERNEL=="legousbtower*", MODE="0666"
30BUS=="usb", KERNEL=="lp[0-9]*", GROUP="lp"
31
32# usbfs-like devices
33SUBSYSTEM=="usb_device", MODE="0664"
34
35# iRiver music players
36SUBSYSTEM=="usb_device", GROUP="plugdev", \
37 SYSFS{idVendor}=="4102", SYSFS{idProduct}=="10[01][135789]"
38
39# serial devices
40SUBSYSTEM=="tty", GROUP="dialout"
41SUBSYSTEM=="capi", GROUP="dialout"
42SUBSYSTEM=="slamr", GROUP="dialout"
43SUBSYSTEM=="zaptel", GROUP="dialout"
44
45# vc devices (all members of the tty subsystem)
46KERNEL=="ptmx", MODE="0666", GROUP="root"
47KERNEL=="console", MODE="0600", GROUP="root"
48KERNEL=="tty", MODE="0666", GROUP="root"
49KERNEL=="tty[0-9]*", GROUP="root"
50KERNEL=="pty*", MODE="0666", GROUP="tty"
51
52# video devices
53SUBSYSTEM=="video4linux", GROUP="video"
54SUBSYSTEM=="drm", GROUP="video"
55SUBSYSTEM=="dvb", GROUP="video"
56SUBSYSTEM=="em8300", GROUP="video"
57SUBSYSTEM=="graphics", GROUP="video"
58SUBSYSTEM=="nvidia", GROUP="video"
59
60# misc devices
61KERNEL=="random", MODE="0666"
62KERNEL=="urandom", MODE="0666"
63KERNEL=="mem", MODE="0640", GROUP="kmem"
64KERNEL=="kmem", MODE="0640", GROUP="kmem"
65KERNEL=="port", MODE="0640", GROUP="kmem"
66KERNEL=="full", MODE="0666"
67KERNEL=="null", MODE="0666"
68KERNEL=="zero", MODE="0666"
69KERNEL=="inotify", MODE="0666"
70KERNEL=="sgi_fetchop", MODE="0666"
71KERNEL=="sonypi", MODE="0666"
72KERNEL=="agpgart", GROUP="video"
73KERNEL=="nvram", GROUP="nvram"
74KERNEL=="rtc", GROUP="audio"
75KERNEL=="tpm*", MODE="0600", OWNER="tss", GROUP="tss"
76KERNEL=="fuse", GROUP="fuse"
77
78KERNEL=="cdemu[0-9]*", GROUP="cdrom"
79KERNEL=="pktcdvd[0-9]*", GROUP="cdrom"
80KERNEL=="pktcdvd", MODE="0644"
81
82KERNEL=="uverbs*", GROUP="rdma"
83KERNEL=="ucm*", GROUP="rdma"
84
85# printers and parallel devices
86SUBSYSTEM=="printer", GROUP="lp"
87SUBSYSTEM=="ppdev", GROUP="lp"
88KERNEL=="pt[0-9]*", GROUP="tape"
89KERNEL=="pht[0-9]*", GROUP="tape"
90
91# sound devices
92SUBSYSTEM=="sound", GROUP="audio"
93
94# ieee1394 devices
95KERNEL=="raw1394", GROUP="disk"
96KERNEL=="dv1394*", GROUP="video"
97KERNEL=="video1394*", GROUP="video"
98
99# input devices
100KERNEL=="event[0-9]*", SYSFS{name}=="*dvb*|*DVB*|* IR *" \
101 MODE="0664", GROUP="video"
102KERNEL=="js[0-9]*", MODE="0664"
103
104# AOE character devices
105SUBSYSTEM=="aoe", MODE="0220", GROUP="disk"
106SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440"
107
108LABEL="permissions_end"
109
diff --git a/openembedded/packages/udev/udev_092.bb b/openembedded/packages/udev/udev_092.bb
index 62bc43d48f..f25eeb0946 100644
--- a/openembedded/packages/udev/udev_092.bb
+++ b/openembedded/packages/udev/udev_092.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
3the hotplug package and requires a kernel not older than 2.6.12." 3the hotplug package and requires a kernel not older than 2.6.12."
4RPROVIDES = "hotplug" 4RPROVIDES = "hotplug"
5 5
6PR = "r3" 6PR = "r5"
7 7
8SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ 8SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
9 file://noasmlinkage.patch;patch=1 \ 9 file://noasmlinkage.patch;patch=1 \