1 |
On 05/02/2014 20:28, James wrote: |
2 |
> Alan McKinnon <alan.mckinnon <at> gmail.com> writes: |
3 |
> |
4 |
>> Do you have some MAC system like SELinux configured? |
5 |
> |
6 |
> Well, lookie here after a reboot: |
7 |
> |
8 |
> $ dmesg | grep mod |
9 |
> |
10 |
> [ 0.000033] SELinux: Starting in permissive mode |
11 |
> |
12 |
> So something to do with SeLinux is activated in the kernel? |
13 |
> |
14 |
> I changed all of those permissions and after a reboot to |
15 |
> the 3.13.1-gentoo kernel, it's still looking at the |
16 |
> original (first) kernel modules: |
17 |
> |
18 |
> # /etc/init.d/cupsd restart |
19 |
> * Stopping cupsd ... [ ok ] |
20 |
> /etc/init.d/../conf.d/modules: line 25: |
21 |
> /lib/modules/3.10.25-gentoo/kernel/drivers/char/kcopy/kcopy.ko: Permission |
22 |
> denied |
23 |
> /etc/init.d/../conf.d/modules: line 26: |
24 |
> /lib/modules/3.10.25-gentoo/kernel/net/netfilter/nf_nat_sip.ko: Permission |
25 |
> denied |
26 |
> /etc/init.d/../conf.d/modules: line 27: |
27 |
> /lib/modules/3.10.25-gentoo/kernel/net/netfilter/nf_nat_irc.ko: Permission |
28 |
> denied |
29 |
> <snip> |
30 |
|
31 |
Let's thin about this logically. A kernel does not get told it's |
32 |
version, it already knows that, and modules are versioned too. A kernel |
33 |
finds it's modules by looking in /path/to/modules/`uname -r` |
34 |
|
35 |
So, either the version string is wrong in the kernel (possible I suppose |
36 |
if you copy and old .config and male oldconfig goes wrong somehow) or |
37 |
you have the wrong modules in the wrongly named directory. |
38 |
|
39 |
If the version string correct if you runs trings against any of those |
40 |
not-loading modules and grep for "vermagic"? |
41 |
|
42 |
Does the correct kernel version show up when looking in strings of the |
43 |
image in /boot? |
44 |
|
45 |
[working theory: the kernel throws permission denied errors when it's |
46 |
asked in weird ways to load wrong versioned modules. Pure speculation, |
47 |
I've never done this at all and don't know what the error is] |
48 |
|
49 |
|
50 |
-- |
51 |
Alan McKinnon |
52 |
alan.mckinnon@×××××.com |