Gentoo Archives: gentoo-hardened

From: Roel Vromen <roel@××××××.net>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] new kernel not being able to mount filesystems?
Date: Mon, 23 May 2005 19:32:03
Message-Id: 200505232132.14312.roel@vromen.net
1 Hi list,
2
3 I have a weird problem: when I compile a 2.6.11-kernel (the version is
4 probably not the culprit though) and try to boot it (in enforcing mode) it
5 always gives the following error:
6 ----
7 audit(1116881914.014:0): avc: denied { execmod } for pid=1 comm=init
8 path=/sbin/init dev=hda3 ino=418514 scontext=system_u:system_r:init_t
9 tcontext=system_u:object_r:init_exec_t tclass=file
10 /sbin/initKernel panic - not syncing: Attempted to kill init!
11 : error while lo ading shared libraries: cannot restore segment prot after
12 reloc
13 : Permission denied
14 -----
15
16 Weird though: I have about the same setup on another system which runs just
17 fine with linux-2.6.11-hardened-r13 as kernel. ls -Z shows no differenced for
18 the /sbin/init-labeling, and the kernel.te and bootloader.te show no
19 differences as far as I can tell. And both kernels are compiled with the
20 exact same .config file.
21
22 Make relabel doesn't change a thing.
23
24 Does anyone have a clue where to look or what to do?
25
26 regards,
27
28 Roel
29
30 When I use the old kernel, everything is fine again.

Replies