Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Kernel 3.7.9: Lots of devices are root root rw-------.
Date: Sun, 24 Feb 2013 16:10:11
Message-Id: 512A3AF3.4010601@gmail.com
In Reply to: Re: [gentoo-user] Kernel 3.7.9: Lots of devices are root root rw-------. by Alan Mackenzie
1 On 24/02/2013 13:02, Alan Mackenzie wrote:
2 > On Sun, Feb 24, 2013 at 10:44:19AM +0200, Alan McKinnon wrote:
3 >> On 23/02/2013 19:18, Alan Mackenzie wrote:
4 >>> Hi, Gentoo!
5 >
6 >>> Just built the new kernel 3.7.9 last night, and it's one of these
7 >>> "nothing works" situations.
8 >
9 > Sorry, I was exaggerating here. I can work normally as long as I don't
10 > try to use a peripheral, such as printer, audio, or scanner. My network
11 > connection is working OK.
12 >
13 >>> It seems the problems are with the device files, whose ownership is set
14 >>> to "root root" (rather than, e.g., "root audio") and whose permissions
15 >>> are set to crw------- (rather than the expected crw-rw----).
16 >
17 >>> I'm still running udev-171-r10. This might well make a difference.
18 >
19 >>> Needless to say, everything works under kernel 3.6.11. It would be nice
20 >>> if there were some mistake in my kernel config.
21 >
22 >>> Could somebody help me get this fixed, please.
23 >
24 >
25 >> udev sets ownership and permissions on devices nodes, not the kernel.
26 >
27 >> I'd guess your udev setup is incompatible with 3.7.* so let's start with
28 >> the usual:
29 >
30 >> What is your kernel config for the various TMPFS settings in the kernel?
31 >> (grep TMPFS in .config)
32 >
33 > CONFIG_DEVTMPFS=y
34 > CONFIG_DEVTMPFS_MOUNT=y
35 > CONFIG_TMPFS=y
36 > CONFIG_TMPFS_POSIX_ACL=y
37 > CONFIG_TMPFS_XATTR=y
38 >
39 >> What mount options apply to /dev?
40 >
41 > On my (working) 3.6.11:
42 > devtmpfs on /dev type devtmpfs (rw,relatime,size=1988792k,nr_inodes=497198,mode=755)
43 >
44 > On my (non-working) 3.7.9:
45 > devtmpfs on /dev type devtmpfs (rw,relatime,size=1988680k,nr_inodes=497170,mode=755)
46 >
47 >> Contents of /etc/fstab?
48 >
49 > (Leading comments have been removed.)
50 >
51 > #/dev/BOOT /boot ext2 noauto,noatime 1 2
52 > /dev/md6 / ext3 noatime 0 1
53 > /dev/sda2 none swap sw 0 0
54 > /dev/sdb2 none swap sw 0 0
55 >
56 > #/dev/mapper/vg-usr /usr ext3 noatime 1 2
57 > /dev/mapper/vg-usrportage /usr/portage ext2 noatime 1 2
58 > /dev/mapper/vg-usrportagedistfiles /usr/portage/distfiles ext2 noatime 1 2
59 > /dev/mapper/vg-usrsrc /usr/src ext3 noatime 1 2
60 >
61 > /dev/mapper/vg-home /home ext3 noatime 1 2
62 > /dev/mapper/vg-opt /opt ext3 noatime 1 2
63 >
64 > /dev/mapper/vg-var /var ext3 noatime 1 2
65 > /dev/mapper/vg-varspoolmail /var/spool/mail ext3 noatime 1 2
66 > /dev/mapper/vg-varspoolnews /var/spool/news reiserfs noatime 1 2
67 > /dev/mapper/vg-vardbpkg /var/db/pkg ext3 noatime 1 2
68 >
69 > /dev/mapper/vg-iso /iso ext2 noatime 1 2
70 > /dev/mapper/vg-old /old ext2 noatime 1 2
71 > /dev/mapper/vg-vg--backup /backup ext2 noatime 1 2
72 >
73 > /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
74 > /dev/fd0 /mnt/floppy auto noauto 0 0
75 >
76 > # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
77 > # POSIX shared memory (shm_open, shm_unlink).
78 > # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
79 > # use almost no memory if not populated with files)
80 > shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
81 >
82 >
83 >> USE flags that apply to udev?
84 >
85 > [ebuild R ] sys-fs/udev-171-r10
86 > USE="gudev hwdb introspection keymap rule_generator
87 > -action_modeswitch -build -debug -edd (-extras) -floppy (-selinux) {-test}"
88
89 That all looks quite normal (or, nothing stands out as being unusual).
90
91 I suppose your next step is to examine udev's logs where it creates the
92 various devices.
93
94
95 --
96 Alan McKinnon
97 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Kernel 3.7.9: Lots of devices are root root rw-------. Alan Mackenzie <acm@×××.de>