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 C85641380DC for ; Wed, 5 Feb 2014 19:12:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1A61EE0CC6; Wed, 5 Feb 2014 19:12:36 +0000 (UTC) Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8561E0B9F for ; Wed, 5 Feb 2014 19:12:34 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id t61so628413wes.14 for ; Wed, 05 Feb 2014 11:12:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=m1IEErUPDTCdi4Z/J357xYimnMjHiAYW0DvkAzfAv/w=; b=qlf1M7wQXOroo3bGkBQj3KMhEtomo7GM7o1TJz2z056pB1CNNCTPRo3naqP50kS6SQ gv7KAAsh4TpADI08crD+5Z8wOGik/BPBGEYevqlkWntenZvum9cZLavBUQ4SrjjDMPzl SnOwOov5eDyiLK6x8MuhY9YEx04rDpUrj3ZP6ugJtA85r3v2XFV/bbH9jmRq/4kjAd2F hmFFuqZbTp4As1sKE81xQ7Uqz/OZZulSON0TmnHl2SnX+JOjFRoFm+fg1PsiXZgBhdYj ZWzJyvnvdk1Jg4KMcXNIsdj63+WnyqSgoieXtadcqzmLsh4/xTD7+D+21ZtpFBnokwhS 5H/Q== X-Received: by 10.194.236.9 with SMTP id uq9mr2587737wjc.31.1391627553614; Wed, 05 Feb 2014 11:12:33 -0800 (PST) Received: from [172.20.0.40] (196-210-102-21.dynamic.isadsl.co.za. [196.210.102.21]) by mx.google.com with ESMTPSA id uc9sm48338432wib.2.2014.02.05.11.12.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Feb 2014 11:12:33 -0800 (PST) Message-ID: <52F28D1B.9040201@gmail.com> Date: Wed, 05 Feb 2014 21:12:27 +0200 From: Alan McKinnon User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 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] Re: module woes References: <52F27B97.7060609@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: fcfc0737-f848-43af-a471-5684035292e7 X-Archives-Hash: 28bed87248c2bcd25eecf7a5465f80e9 On 05/02/2014 20:28, James wrote: > Alan McKinnon gmail.com> writes: > >> Do you have some MAC system like SELinux configured? > > Well, lookie here after a reboot: > > $ dmesg | grep mod > > [ 0.000033] SELinux: Starting in permissive mode > > So something to do with SeLinux is activated in the kernel? > > I changed all of those permissions and after a reboot to > the 3.13.1-gentoo kernel, it's still looking at the > original (first) kernel modules: > > # /etc/init.d/cupsd restart > * Stopping cupsd ... [ ok ] > /etc/init.d/../conf.d/modules: line 25: > /lib/modules/3.10.25-gentoo/kernel/drivers/char/kcopy/kcopy.ko: Permission > denied > /etc/init.d/../conf.d/modules: line 26: > /lib/modules/3.10.25-gentoo/kernel/net/netfilter/nf_nat_sip.ko: Permission > denied > /etc/init.d/../conf.d/modules: line 27: > /lib/modules/3.10.25-gentoo/kernel/net/netfilter/nf_nat_irc.ko: Permission > denied > Let's thin about this logically. A kernel does not get told it's version, it already knows that, and modules are versioned too. A kernel finds it's modules by looking in /path/to/modules/`uname -r` So, either the version string is wrong in the kernel (possible I suppose if you copy and old .config and male oldconfig goes wrong somehow) or you have the wrong modules in the wrongly named directory. If the version string correct if you runs trings against any of those not-loading modules and grep for "vermagic"? Does the correct kernel version show up when looking in strings of the image in /boot? [working theory: the kernel throws permission denied errors when it's asked in weird ways to load wrong versioned modules. Pure speculation, I've never done this at all and don't know what the error is] -- Alan McKinnon alan.mckinnon@gmail.com