From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4443A198005 for ; Sun, 24 Feb 2013 16:10:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD10FE0730; Sun, 24 Feb 2013 16:10:00 +0000 (UTC) Received: from mail-wg0-f51.google.com (mail-wg0-f51.google.com [74.125.82.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5CC9FE0700 for ; Sun, 24 Feb 2013 16:09:59 +0000 (UTC) Received: by mail-wg0-f51.google.com with SMTP id 8so1802390wgl.30 for ; Sun, 24 Feb 2013 08:09:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=q+UdxIq61PI9e4iDefOz6qISWyYIbzrDrFzUqzVs89c=; b=rsWBxarBC3aZTfr9tlFy8vdM/EJsNWJEHn5STdp609hyIDgUuVPmUvoGHVs1L+6OHy yv00zZemnTWGriI+1wJVgAmSuMkY/RV++Gv+QUuWfOVTvWil2IDpdA515u4xBw7pXzG0 4QWmrm3S4QyIr8KXVwEm9rcMQRlWdfEebHzHYui5o1P7fq6M2B1Gt5Gn0RTJ6HHu82bk oL0VOIcD2U5rT2aiD80c2lO9HAnuCq6bH/l8Gp2RM3sAKpHTcMWetmhLKurvNLNXXO/8 UlxjBQSr06G9RbyvI2B5lEDxtAavoNaI3At0nPMbGGbjTVeoBFkgyj/Bhl5Tk+n498ER ZtNw== X-Received: by 10.180.95.66 with SMTP id di2mr7267081wib.18.1361722197915; Sun, 24 Feb 2013 08:09:57 -0800 (PST) Received: from [172.20.0.41] (196-215-205-209.dynamic.isadsl.co.za. [196.215.205.209]) by mx.google.com with ESMTPS id cf8sm10842002wib.1.2013.02.24.08.09.55 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Feb 2013 08:09:56 -0800 (PST) Message-ID: <512A3AF3.4010601@gmail.com> Date: Sun, 24 Feb 2013 18:08:19 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130114 Thunderbird/17.0.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Kernel 3.7.9: Lots of devices are root root rw-------. References: <20130223171841.GA3178@acm.acm> <5129D2E3.5020206@gmail.com> <20130224110201.GA2212@acm.acm> In-Reply-To: <20130224110201.GA2212@acm.acm> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: a09d018d-2b64-4a02-ae57-704878a1b064 X-Archives-Hash: 47da7af1bbc5b4be065f8596d99eb66b On 24/02/2013 13:02, Alan Mackenzie wrote: > On Sun, Feb 24, 2013 at 10:44:19AM +0200, Alan McKinnon wrote: >> On 23/02/2013 19:18, Alan Mackenzie wrote: >>> Hi, Gentoo! > >>> Just built the new kernel 3.7.9 last night, and it's one of these >>> "nothing works" situations. > > Sorry, I was exaggerating here. I can work normally as long as I don't > try to use a peripheral, such as printer, audio, or scanner. My network > connection is working OK. > >>> It seems the problems are with the device files, whose ownership is set >>> to "root root" (rather than, e.g., "root audio") and whose permissions >>> are set to crw------- (rather than the expected crw-rw----). > >>> I'm still running udev-171-r10. This might well make a difference. > >>> Needless to say, everything works under kernel 3.6.11. It would be nice >>> if there were some mistake in my kernel config. > >>> Could somebody help me get this fixed, please. > > >> udev sets ownership and permissions on devices nodes, not the kernel. > >> I'd guess your udev setup is incompatible with 3.7.* so let's start with >> the usual: > >> What is your kernel config for the various TMPFS settings in the kernel? >> (grep TMPFS in .config) > > CONFIG_DEVTMPFS=y > CONFIG_DEVTMPFS_MOUNT=y > CONFIG_TMPFS=y > CONFIG_TMPFS_POSIX_ACL=y > CONFIG_TMPFS_XATTR=y > >> What mount options apply to /dev? > > On my (working) 3.6.11: > devtmpfs on /dev type devtmpfs (rw,relatime,size=1988792k,nr_inodes=497198,mode=755) > > On my (non-working) 3.7.9: > devtmpfs on /dev type devtmpfs (rw,relatime,size=1988680k,nr_inodes=497170,mode=755) > >> Contents of /etc/fstab? > > (Leading comments have been removed.) > > #/dev/BOOT /boot ext2 noauto,noatime 1 2 > /dev/md6 / ext3 noatime 0 1 > /dev/sda2 none swap sw 0 0 > /dev/sdb2 none swap sw 0 0 > > #/dev/mapper/vg-usr /usr ext3 noatime 1 2 > /dev/mapper/vg-usrportage /usr/portage ext2 noatime 1 2 > /dev/mapper/vg-usrportagedistfiles /usr/portage/distfiles ext2 noatime 1 2 > /dev/mapper/vg-usrsrc /usr/src ext3 noatime 1 2 > > /dev/mapper/vg-home /home ext3 noatime 1 2 > /dev/mapper/vg-opt /opt ext3 noatime 1 2 > > /dev/mapper/vg-var /var ext3 noatime 1 2 > /dev/mapper/vg-varspoolmail /var/spool/mail ext3 noatime 1 2 > /dev/mapper/vg-varspoolnews /var/spool/news reiserfs noatime 1 2 > /dev/mapper/vg-vardbpkg /var/db/pkg ext3 noatime 1 2 > > /dev/mapper/vg-iso /iso ext2 noatime 1 2 > /dev/mapper/vg-old /old ext2 noatime 1 2 > /dev/mapper/vg-vg--backup /backup ext2 noatime 1 2 > > /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 > /dev/fd0 /mnt/floppy auto noauto 0 0 > > # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for > # POSIX shared memory (shm_open, shm_unlink). > # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will > # use almost no memory if not populated with files) > shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 > > >> USE flags that apply to udev? > > [ebuild R ] sys-fs/udev-171-r10 > USE="gudev hwdb introspection keymap rule_generator > -action_modeswitch -build -debug -edd (-extras) -floppy (-selinux) {-test}" That all looks quite normal (or, nothing stands out as being unusual). I suppose your next step is to examine udev's logs where it creates the various devices. -- Alan McKinnon alan.mckinnon@gmail.com