Must SELinux have a initrd image and RAM disk when it boots up? and...
Dear sir:
I have install Fedora core 1 (the file date is 2003-11-04,I download it only several days ago) on my computer. and download 2.6.0-test11 kernel with SELinux patch applied and SELinux Full Userland Archive from NSA's SELinux web site. I took actions according to selinux-usr/selinux-
doc/README. After that I reboot the system.and choose the Fedora Core (2.6.0-test11-selinux1) option in GRUB, But some thing happened like this:
... ...
RAMDISK: compressed image found at block 0
RAMDISK: incomplete write (-1!=32768) 4194304
VFS: cannot open root device "LABEL=/" or unknown-block(0,0)
please append a correct "root= " boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(0,0)
And I can't boot the system at all.
When I configured the kernel,I have chosen the following options in the Block Devices :
<*> RAM disk support
(4096) Default RAM disk size
[*] Initial RAM disk (initrd) support
And the lines in /boot/grub/grub.conf are like this:
... ...
title Fedora Core (2.6.0-test11-selinux1) root(hd0,6)
kernel /vmlinuz-2.6.0-test11-selinux1 ro root=LABEL=/ rhgh initrd /initrd-2.6.0-test-selinux1.img
... ...
I wonder why did the Kernel panic described above happened? and Must SELinux have a two boot-up phase using a initrd RAM disk?
Another question is:
In the step of Build and Install the SELinux-patched daemons and utilities:
cd SRPMS
rpmbuild --rebuild *.sel.src.rpm
All the *.sel.src.rpm can be done successfully except prelink-0.3.0-16.sel.src.rpm.
The messages show on the screen when doing the command( rpmbuild --rebuild prelink-0.3.0-16.sel.src.rpm ) looks like this:
Installing prelink-0.3.0-16.sel.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.84617
drwxr-xr-x root/root 0 2003-10-29 04:02:35 prelink/
... ...
... ...
`/usr/src/redhat/BUILD/prelink' ====================TESTING=========================
make: Entering directory /usr/src/redhat/BUILD/prelink/testsuite' make[1]: Entering directory /usr/src/redhat/BUILD/prelink/testsuite' make check-TESTS
make[2]: Entering directory `/usr/src/redhat/BUILD/prelink/testsuite'
PASS: reloc1.sh
PASS: reloc2.sh
PASS: reloc3.sh
PASS: reloc4.sh
... ...
PASS: tls3.sh
PASS: tls4.sh
PASS: cxx1.sh
PASS: quick1.sh
PASS: cycle1.sh
PASS: cycle2.sh
FAIL: undosyslibs.sh
====================
1 of 29 tests failed
====================
make[2]: Leaving directory /usr/src/redhat/BUILD/prelink/testsuite' make[1]: Leaving directory /usr/src/redhat/BUILD/prelink/testsuite'
make: Leaving directory `/usr/src/redhat/BUILD/prelink/testsuite' RPM build errors:
... ...
Thus, prelink-0.3.0-16.sel.src.rpm can't be done.
Why? Is there some errors in it or in the Fedora core 1 system?
I sincerely hope that you will be able to help me in these matters. Thanks.
Respectfully Yours,
Park Lee
2004-1-28 ---------------------------------
Do You Yahoo!?
繁华世界里,让我看清你
Quoted 2 lines · Park Lee
and download 2.6.0-test11 kernel with SELinux patch applied and
SELinux Full Userland Archive from NSA's SELinux web site.
I'd use 2.6.2-rc2 from kernel.org. Or the Fedora Core development kernel.
Quoted 5 lines
When I configured the kernel,I have chosen the following options in the Block Devices :
<*> RAM disk support
(4096) Default RAM disk size
[*] Initial RAM disk (initrd) support
Try increasing the default ram disk size, e.g. to 8192. CONFIG_BLK_DEV_RAM_SIZE=8192.
Quoted 3 lines
and Must SELinux have a two boot-up
phase using a initrd RAM disk?
Not anymore. The modified init program will load the policy from the disk and then re-exec itself.
Quoted 3 lines
Thus, prelink-0.3.0-16.sel.src.rpm can't be done. Why? Is there some errors in it or in the Fedora core 1 system?
Odd; this worked for me. If you can't build a patched prelink, then you should disable prelink on your system.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- 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.