summaryrefslogtreecommitdiffstats
path: root/package/busybox/mdev.conf
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2011-07-11 12:25:51 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-07-11 13:41:25 +0200
commitfc71f7e6f27829a389dacc38622eb687109133f6 (patch)
tree244006625c1be3cf982d8c27d124b12d0c39aff7 /package/busybox/mdev.conf
parentbd76bc5f80b963570e8eda92efc961e683264402 (diff)
downloadbuildroot-novena-fc71f7e6f27829a389dacc38622eb687109133f6.tar.gz
buildroot-novena-fc71f7e6f27829a389dacc38622eb687109133f6.zip
busybox: provide /etc/mdev.conf if mdev is used
Without an mdev.conf file installed, mdev generates some /dev entries in an incorrect or non-standard way. Some examples: 1. /dev/null has permissions 660, but it should be accessible to normal users; 2. alsa devices get created in /dev, not /dev/snd as is more common, and as the default value of BR2_PACKAGE_ALSA_LIB_DEVDIR suggests; 3. event<N> files are created in /dev, not /dev/input. This mdev.conf is a selection from the examples provided in the busybox sources with minor tweaks. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/mdev.conf')
-rw-r--r--package/busybox/mdev.conf35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/busybox/mdev.conf b/package/busybox/mdev.conf
new file mode 100644
index 000000000..247c0ed02
--- /dev/null
+++ b/package/busybox/mdev.conf
@@ -0,0 +1,35 @@
+# null may already exist; therefore ownership has to be changed with command
+null root:root 666 @chmod 666 $MDEV
+zero root:root 666
+full root:root 666
+random root:root 444
+urandom root:root 444
+hwrandom root:root 444
+grsec root:root 660
+
+kmem root:root 640
+mem root:root 640
+port root:root 640
+# console may already exist; therefore ownership has to be changed with command
+console root:tty 600 @chmod 600 $MDEV
+ptmx root:tty 666
+pty.* root:tty 660
+
+# Typical devices
+tty root:tty 666
+tty[0-9]* root:tty 660
+vcsa*[0-9]* root:tty 660
+ttyS[0-9]* root:root 660
+
+# alsa sound devices
+pcm.* root:audio 660 =snd/
+control.* root:audio 660 =snd/
+midi.* root:audio 660 =snd/
+seq root:audio 660 =snd/
+timer root:audio 660 =snd/
+
+# input stuff
+event[0-9]+ root:root 640 =input/
+mice root:root 640 =input/
+mouse[0-9] root:root 640 =input/
+ts[0-9] root:root 600 =input/