All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel panic: No init found with SE patched kernel 2.6.0-test6
@ 2003-11-21  2:37 Achanta, Venkata Phani
  2003-11-21  6:04 ` Russell Coker
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Achanta, Venkata Phani @ 2003-11-21  2:37 UTC (permalink / raw)
  To: russell; +Cc: selinux

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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Kernel panic: No init found with SE patched kernel 2.6.0-test6
  2003-11-21  2:37 Kernel panic: No init found with SE patched kernel 2.6.0-test6 Achanta, Venkata Phani
@ 2003-11-21  6:04 ` Russell Coker
  2003-11-25 15:58   ` Stephen C. Tweedie
  2003-11-21 14:35 ` Don Patterson
  2003-11-21 14:39 ` John Hayward
  2 siblings, 1 reply; 6+ messages in thread
From: Russell Coker @ 2003-11-21  6:04 UTC (permalink / raw)
  To: ZVPA2; +Cc: selinux

On Fri, 21 Nov 2003 13:37, "Achanta, Venkata Phani" <ZVPA2@imail.etsu.edu> 
wrote:
> VFS:Mounted root(ext2 filesystem)

Here we have mounted the initrc (ext2 is the Red Hat default file system for 
the initrd).

> 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.

> 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/mtab

Missing /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.

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Kernel panic: No init found with SE patched kernel 2.6.0-test6
  2003-11-21  2:37 Kernel panic: No init found with SE patched kernel 2.6.0-test6 Achanta, Venkata Phani
  2003-11-21  6:04 ` Russell Coker
@ 2003-11-21 14:35 ` Don Patterson
  2003-11-21 14:39 ` John Hayward
  2 siblings, 0 replies; 6+ messages in thread
From: Don Patterson @ 2003-11-21 14:35 UTC (permalink / raw)
  To: ZVPA2; +Cc: 'selinux'

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: owner-selinux@tycho.nsa.gov [mailto:owner-selinux@tycho.nsa.gov]On
Behalf Of Achanta, Venkata Phani
Sent: Thursday, November 20, 2003 9:38 PM
To: russell@coker.com.au
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 majordomo@tycho.nsa.gov
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Kernel panic: No init found with SE patched kernel 2.6.0-test6
  2003-11-21  2:37 Kernel panic: No init found with SE patched kernel 2.6.0-test6 Achanta, Venkata Phani
  2003-11-21  6:04 ` Russell Coker
  2003-11-21 14:35 ` Don Patterson
@ 2003-11-21 14:39 ` John Hayward
  2003-11-22  9:50   ` Dale Amon
  2 siblings, 1 reply; 6+ messages in thread
From: John Hayward @ 2003-11-21 14:39 UTC (permalink / raw)
  To: Achanta, Venkata Phani; +Cc: russell, selinux

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...
On Thu, 20 Nov 2003, Achanta, Venkata Phani wrote:

>Date: Thu, 20 Nov 2003 21:37:48 -0500
>From: "Achanta, Venkata Phani" <ZVPA2@imail.etsu.edu>
>To: russell@coker.com.au
>Cc: selinux <selinux@tycho.nsa.gov>
>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 majordomo@tycho.nsa.gov 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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Kernel panic: No init found with SE patched kernel 2.6.0-test6
  2003-11-21 14:39 ` John Hayward
@ 2003-11-22  9:50   ` Dale Amon
  0 siblings, 0 replies; 6+ messages in thread
From: Dale Amon @ 2003-11-22  9:50 UTC (permalink / raw)
  To: John Hayward; +Cc: Achanta, Venkata Phani, russell, selinux

On Fri, Nov 21, 2003 at 08:39:44AM -0600, John Hayward wrote:
>    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.

-- 
------------------------------------------------------
   Dale Amon     amon@islandone.org    +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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Kernel panic: No init found with SE patched kernel 2.6.0-test6
  2003-11-21  6:04 ` Russell Coker
@ 2003-11-25 15:58   ` Stephen C. Tweedie
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen C. Tweedie @ 2003-11-25 15:58 UTC (permalink / raw)
  To: Russell Coker; +Cc: ZVPA2, selinux

Hi,

On Fri, 2003-11-21 at 06:04, Russell Coker wrote:

> > 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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-11-25 15:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-21  2:37 Kernel panic: No init found with SE patched kernel 2.6.0-test6 Achanta, Venkata Phani
2003-11-21  6:04 ` Russell Coker
2003-11-25 15:58   ` Stephen C. Tweedie
2003-11-21 14:35 ` Don Patterson
2003-11-21 14:39 ` John Hayward
2003-11-22  9:50   ` Dale Amon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.