summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2009-02-19 14:08:34 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2009-02-19 14:08:34 +0000
commit61f6f6318abdaaf74d381045a2b80bc148523872 (patch)
tree0af71b173d55a8f51ecbfe8d36912349e2f6a17a /sys-fs/udev
parentVersion bump (diff)
downloadgentoo-2-61f6f6318abdaaf74d381045a2b80bc148523872.tar.gz
gentoo-2-61f6f6318abdaaf74d381045a2b80bc148523872.tar.bz2
gentoo-2-61f6f6318abdaaf74d381045a2b80bc148523872.zip
Set permission bits correct for seeding dev. Also create /dev/kmsg before running udevd so it can write messages to dmesg.
(Portage version: 2.1.6.7/cvs/Linux i686)
Diffstat (limited to 'sys-fs/udev')
-rw-r--r--sys-fs/udev/ChangeLog7
-rwxr-xr-xsys-fs/udev/files/136/udev-mount.initd11
2 files changed, 13 insertions, 5 deletions
diff --git a/sys-fs/udev/ChangeLog b/sys-fs/udev/ChangeLog
index 20b85c4fc986..f1bced7aa08a 100644
--- a/sys-fs/udev/ChangeLog
+++ b/sys-fs/udev/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-fs/udev
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.448 2009/02/19 08:41:34 zzam Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/udev/ChangeLog,v 1.449 2009/02/19 14:08:34 zzam Exp $
+
+ 19 Feb 2009; Matthias Schwarzott <zzam@gentoo.org>
+ files/136/udev-mount.initd:
+ Set permission bits correct for seeding dev. Also create /dev/kmsg before
+ running udevd so it can write messages to dmesg.
*udev-138 (19 Feb 2009)
diff --git a/sys-fs/udev/files/136/udev-mount.initd b/sys-fs/udev/files/136/udev-mount.initd
index c41fa0781a4c..55ab40d9e94d 100755
--- a/sys-fs/udev/files/136/udev-mount.initd
+++ b/sys-fs/udev/files/136/udev-mount.initd
@@ -44,13 +44,16 @@ seed_dev()
# creating /dev/console, /dev/tty and /dev/tty1 to be able to write
# to $CONSOLE with/without bootsplash before udevd creates it
- [ -c /dev/console ] || mknod /dev/console c 5 1
- [ -c /dev/tty1 ] || mknod /dev/tty1 c 4 1
- [ -c /dev/tty ] || mknod /dev/tty c 5 0
+ [ -c /dev/console ] || mknod -m 600 /dev/console c 5 1
+ [ -c /dev/tty1 ] || mknod -m 620 /dev/tty1 c 4 1
+ [ -c /dev/tty ] || mknod -m 666 /dev/tty c 5 0
# udevd will dup its stdin/stdout/stderr to /dev/null
# and we do not want a file which gets buffered in ram
- [ -c /dev/null ] || mknod /dev/null c 1 3
+ [ -c /dev/null ] || mknod -m 666 /dev/null c 1 3
+
+ # so udev can add its start-message to dmesg
+ [ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11
# copy over any persistant things
if [ -d /lib/udev/devices ]; then