2.4 security_initcall fix

From: Serue Hallyen (serue@private)
Date: Thu Dec 11 2003 - 15:08:59 PST

  • Next message: James Morris: "Re: [RFC] SO_PEERSEC - security credentials for Unix stream sockets"

    In the 2.4 bk tree, security_initall is not defined when an LSM is
    compiled as a module.  So if capability is compiled as a module, then
    capability_init is never called.
    
    The following patch adds one line to define security_initcall for a
    module.
    
    -serge
    
    --- lsm-2.4/include/linux/init.h        2003-12-11 14:43:34.000000000
    -0600
    +++ lsm-2.4/include/linux/init.h.new    2003-12-11 16:52:09.000000000
    -0600
    @@ -124,6 +124,8 @@
     #define __initcall(fn)
     #define __security_initcall(fn)
    
    +#define security_initcall(fn)  module_init(fn)
    +
     /* For assembly routines */
     #define __INIT
     #define __FINIT
    



    This archive was generated by hypermail 2b30 : Thu Dec 11 2003 - 15:09:49 PST