Re: [PATCH] Early init for security modules

From: Chris Wright (chrisat_private)
Date: Mon May 12 2003 - 20:07:23 PDT

  • Next message: Chris Wright: "Re: [PATCH] Early init for security modules"

    * Chris Wright (chrisat_private) 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.21/arch/alpha/vmlinux.lds.S	Wed Apr  2 00:42:56 2003
    +++ edited/arch/alpha/vmlinux.lds.S	Mon May 12 16:16:54 2003
    @@ -74,6 +74,13 @@
     	__con_initcall_end = .;
       }
     
    +  . = ALIGN(8);
    +  .security_initcall.init : {
    +	__security_initcall_start = .;
    +	*(.security_initcall.init)
    +	__security_initcall_end = .;
    +  }
    +
       . = ALIGN(64);
       __per_cpu_start = .;
       .data.percpu : { *(.data.percpu) }
    _______________________________________________
    linux-security-module mailing list
    linux-security-moduleat_private
    http://mail.wirex.com/mailman/listinfo/linux-security-module
    



    This archive was generated by hypermail 2b30 : Mon May 12 2003 - 20:08:48 PDT