Kernel panic: No init found with SE patched kernel 2.6.0-test6
hi everybody,
I have applied SELinux patch against kernel 2.6.0-test6 and i get the following error when i boot the new kernel.
VFS:Mounted root(ext2 filesystem)
Red hat nash version 3.4.42 starting
Mounting /proc filesystem
creating block devices
creating root device
Mounting root file system
mount: error 19 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed:2 umount /initrd/proc failed:2
Freeing unused kernel memory:228k freed
kernel panic:No init found.Try passing init= option to kernel
Any help will be appriciated.Is this a issue with ext3 fs support?
Thanks in Advance,
Venkata Phani Achanta
Graduate Student
Dept of Computer Science
East Tennessee state university
USA
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 1 line · Venkata Phani
VFS:Mounted root(ext2 filesystem)
Here we have mounted the initrc (ext2 is the Red Hat default file system for the initrd).
Quoted 1 line
Red hat nash version 3.4.42 starting
Here we are running code from the initrd, nash is a small shell that's good for an initrd.
Quoted 5 lines
Mounting /proc filesystem
creating block devices
creating root device
Mounting root file system
mount: error 19 mounting ext3
Here we are trying to mount root and failing. The return code 19 means the following (see the mount man page):
1 incorrect invocation or permissions
2 system error (out of memory, cannot fork, no more loop devices)
16 problems writing or locking /etc/mtabMissing /etc/mtab is no big deal for an initrd. Errors 2 and 1 are more serious and I have no idea what the cause of them may be. For the Red Hat SE Linux release we will have a standard kernel, a standard initrd, and init will load SE Linux after root is mounted so we won't have to deal with any SE Linux specific issues relating to booting the system.
http://people.redhat.com/arjanv/2.5/RPMS.kernel/
I suggest you go to the above URL and download one of Arjan's kernels. They have SE Linux built in and it'll be much easier than trying to compile your own.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Just a guess, but if your root partition is ext3, your kernel may not be configured with BUILT-IN ext3 support. This is one of the problems I encountered while installing SE Linux on Redhat 9. You can also refer to the mailing archives for further information.
(http://marc.theaimsgroup.com/?l=selinux&m=106695360807833&w=2)
--Don
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Achanta, Venkata Phani
Sent: Thursday, November 20, 2003 9:38 PM
To: [email protected]
Cc: selinux
Subject: Kernel panic: No init found with SE patched kernel 2.6.0-test6
hi everybody,
I have applied SELinux patch against kernel 2.6.0-test6 and i get the following error when i boot the new kernel.
VFS:Mounted root(ext2 filesystem)
Red hat nash version 3.4.42 starting
Mounting /proc filesystem
creating block devices
creating root device
Mounting root file system
mount: error 19 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed:2 umount /initrd/proc failed:2
Freeing unused kernel memory:228k freed
kernel panic:No init found.Try passing init= option to kernel
Any help will be appriciated.Is this a issue with ext3 fs support?
Thanks in Advance,
Venkata Phani Achanta
Graduate Student
Dept of Computer Science
East Tennessee state university
USA
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Hi,
I have had similar trouble.
It seems the best current approach to get up on selinux is to install
Fedora and use:
ftp://people.redhat.com/dwalsh/SELinux/selUpgrade
to install a new kernel (2.6.0-test9) along with the SELinux packages.
Using the NSA's pages I found the following problems with redhat 9:
1) The README documentation in the patched kernel download is out of date and does not document how the kernel needs to be configirured.
2) The documentation contained in the SE userland does contain some of the required kernel configuation information.
3) When building an installing the configured kernel while I was able to bring up the system - however SELinux was not enabled because for some reason the registration of the security package seems to be done twice and the failure of the second attempt causes SELinux to not be enabled. It might be an issue with modules not being enabled.
In your case it appears that you need to configure the kernel to use
ex3 - check the userland documentation on other kernel options you need. I'm kind of poking at the kernel to find out why there seems to be two registration of security modules being attempted.
johnh...
Quoted 38 lines · Venkata Phani
Date: Thu, 20 Nov 2003 21:37:48 -0500
From: "Achanta, Venkata Phani" <[email protected]>
To: [email protected]
Cc: selinux <[email protected]>
Subject: Kernel panic: No init found with SE patched kernel 2.6.0-test6hi everybody,
I have applied SELinux patch against kernel 2.6.0-test6 and i get the following error when i boot the new kernel.
VFS:Mounted root(ext2 filesystem)
Red hat nash version 3.4.42 starting
Mounting /proc filesystem
creating block devices
creating root device
Mounting root file system
mount: error 19 mounting ext3
pivotroot:pivot_root(/sysroot,/sysroot/initrd)failed:2 umount /initrd/proc failed:2
Freeing unused kernel memory:228k freed
kernel panic:No init found.Try passing init= option to kernelAny help will be appriciated.Is this a issue with ext3 fs support?
Thanks in Advance,
Venkata Phani Achanta
Graduate Student
Dept of Computer Science
East Tennessee state university
USA
Quoted 5 lines
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
johnh...
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 4 lines · John Hayward
In your case it appears that you need to configure the kernel to use
ex3 - check the userland documentation on other kernel options you need. I'm kind of poking at the kernel to find out why there seems to be two registration of security modules being attempted.
Probably the Linux ACL's, I don't think this is a problem.
Signature · 12 lines
------------------------------------------------------ Dale Amon [email protected] +44-7802-188325 International linux systems consultancy Hardware & software system design, security and networking, systems programming and Admin "Have Laptop, Will Travel" ------------------------------------------------------ -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Hi,
Quoted 4 lines · Russell Coker
Quoted 1 line
mount: error 19 mounting ext3
Here we are trying to mount root and failing. The return code 19 means the following (see the mount man page):
Actually, "mount" is a nash builtin, and I think the 19 is a direct kernel error code in that case: specifically,
#define ENODEV 19 /* No such device */
from /usr/include/asm/errno.h. This implies that the kernel has no device driver for the specified boot device, which could mean that we've got a badly constructed initrd for example.
Cheers,
Stephen
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.