Re: [PATCH] Early init for security modules

From: Chris Wright (chris@wirex.com)
Date: Mon May 12 2003 - 22:15:18 EST


* Chris Wright (chris@wirex.com) wrote:
> As discussed before, here is a simple patch to allow for early
> initialization of security modules when compiled statically into the
> kernel. The standard do_initcalls is too late for complete coverage of
> all filesystems and threads for example. If this looks OK, I'd like to
> push it on to Linus. Patch is against 2.5.69-bk. It is tested on i386,
> and various arch maintainers are copied on relevant bits of patch.

This is just the arch specific linker bits for the early initialization
for security modules patch. Does this look sane for this arch?

--- 1.15/arch/x86_64/vmlinux.lds.S Wed Apr 2 00:42:56 2003
+++ edited/arch/x86_64/vmlinux.lds.S Mon May 12 16:17:00 2003
@@ -105,6 +105,9 @@
   __con_initcall_start = .;
   .con_initcall.init : { *(.con_initcall.init) }
   __con_initcall_end = .;
+ __security_initcall_start = .;
+ .security_initcall.init : { *(.security_initcall.init) }
+ __security_initcall_end = .;
   . = ALIGN(4096);
   __initramfs_start = .;
   .init.ramfs : { *(.init.ramfs) }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:43 EST