Re: [PATCH] Early init for security modules

Chris Wright
2003-05-13T02:57:53Z

* 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.1/arch/h8300/platform/h8300h/generic/rom.ld Thu Apr 17 12:30:45 2003
+++ edited/arch/h8300/platform/h8300h/generic/rom.ld Mon May 12 16:44:10 2003
@@ -83,6 +83,9 @@
___con_initcall_start = .;
*(.con_initcall.init)
___con_initcall_end = .;
+ ___security_initcall_start = .;
+ *(.security_initcall.init)
+ ___security_initcall_end = .;
. = ALIGN(4);
___initramfs_start = .;
*(.init.ramfs)