mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.2-mm1, selinux, and initrd
@ 2004-02-06  2:28 Valdis.Kletnieks
  2004-02-06  5:02 ` James Morris
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Valdis.Kletnieks @ 2004-02-06  2:28 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]

On my laptop, I use an initrd to get things started (mostly SElinux
and LVM).  (I've attached the 'linuxrc' below).

Under 2.6.2-rc3-mm1, I got the following while booting:

Feb  5 09:40:34 turing-police kernel: RAMDISK: Compressed image found at block 0
Feb  5 09:40:34 turing-police kernel: VFS: Mounted root (ext2 filesystem).
Feb  5 09:40:34 turing-police kernel: Mounted devfs on /dev
Feb  5 09:40:34 turing-police kernel: security:  3 users, 5 roles, 1039 types
Feb  5 09:40:34 turing-police kernel: security:  30 classes, 128126 rules
Feb  5 09:40:35 turing-police kernel: SELinux:  Completing initialization.
Feb  5 09:40:35 turing-police kernel: SELinux:  Setting up existing superblocks.
Feb  5 09:40:35 turing-police kernel: SELinux: initialized (dev , type selinuxfs), uses genfs_contexts
Feb  5 09:40:35 turing-police kernel: SELinux: initialized (dev ram0, type ext2), uses xattr

Booting 2.6.2-mm1, I get:

RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
VFS: Cannot open root device 

and things come to a screeching halt.  Absolutely nothing in the linuxrc
seems to happen - and since the real root is on an LVM, we come to a
screeching halt.

The system boots OK (minus selinux functionality of course)if I pass
'selinux=0' as a kernel parameter, so I'm suspecting these 3 patches:

+selinux-01-context-mount-support.patch
+selinux-02-nfs-context-mounts.patch
+selinux-03-context-mounts-selinux.patch

I'm suspecting that try_context_mount() is choking because we haven't
loaded the policy or anything, so we hit this:

       rc = try_context_mount(sb, data);
        if (rc)
                goto out;

and die a horrid death...

Oh, and the linuxrc:

#!/bin/nash

echo Loading policy
mount -t selinuxfs none /selinux
/bin/load_policy /etc/security/selinux/policy.15
umount /selinux

echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Creating block devices
mkdevices /dev
echo Scanning logical volumes
lvm vgscan
echo Activating logical volumes
lvm vgchange -ay
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem
mount -o noatime,nodev --ro -t ext3 /dev/rootvg/root /sysroot
pivot_root /sysroot /sysroot/initrd
umount /initrd/proc




[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

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

end of thread, other threads:[~2004-02-08  1:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-06  2:28 2.6.2-mm1, selinux, and initrd Valdis.Kletnieks
2004-02-06  5:02 ` James Morris
2004-02-06  5:13 ` James Morris
2004-02-07  3:39 ` James Morris
2004-02-07  5:05   ` Valdis.Kletnieks
2004-02-07 13:49     ` James Morris
2004-02-08  1:15       ` Valdis.Kletnieks
2004-02-08  1:31         ` Andrew Morton
2004-02-08  1:53           ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®