BUG!. RSBAC and initrd


From: Stanislav Ievlev <inger@altlinux.ru>
Subject: BUG!. RSBAC and initrd
Date: Mon, 21 May 2001 18:04:47 +0400

Next Article (by Date): 2 RSBAC Problems "Kaladis"
Previous Article (by Date):
Next in Thread: Re: BUG!. RSBAC and initrd Amon Ott
Articles sorted by: [Date] [Author] [Subject]


This is a multi-part message in MIME format.
--------------090907050909010704020308
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello All!

There is a bug in latest RSBAC: kernel cannot correctly work with initrd.

Problem in kernel patch - rsbac_init() runs before initrd and use 
incorrect values of devices.

Solution - place rsbac_init() just after initrd work (patch in attach).

--------------
With best regards

Stanislav Ievlev
<inger@linux.ru.net>

--------------090907050909010704020308
Content-Type: text/plain;
 name="rsbac-initrd.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="rsbac-initrd.patch"

diff -Naur linux.orig/init/main.c linux/init/main.c
--- linux.orig/init/main.c	Mon May 21 15:28:51 2001
+++ linux/init/main.c	Mon May 21 15:33:58 2001
@@ -838,10 +838,6 @@
 	/* Mount the root filesystem.. */
 	mount_root();
 
-#ifdef CONFIG_RSBAC
-        /* RSBAC: OK, most stuff initialized and root mounted: Init RSBAC. */
-        rsbac_init();
-#endif
 
 	mount_devfs_fs ();
 
@@ -863,6 +859,11 @@
 				    "error %d\n",error);
 		}
 	}
+#endif
+
+#ifdef CONFIG_RSBAC
+        /* RSBAC: OK, most stuff initialized and root mounted: Init RSBAC. */
+        rsbac_init();
 #endif
 }
 

--------------090907050909010704020308--

-
To unsubscribe from the rsbac list, send a mail to
majordomo@rsbac.org with
unsubscribe rsbac
as single line in the body.

Next Article (by Date): 2 RSBAC Problems "Kaladis"
Previous Article (by Date):
Next in Thread: Re: BUG!. RSBAC and initrd Amon Ott
Articles sorted by: [Date] [Author] [Subject]


Go to Compuniverse LWGate Home Page.