[PATCH] Support for kbuild-2.5

From: richard offer (offerat_private)
Date: Wed Jan 02 2002 - 11:00:17 PST

  • Next message: Stephen Smalley: "Re: [PATCH] Support for kbuild-2.5"

    Attached are some patches that add initial support for kbuild-2.5 to all
    the modules. It seems to work, and it doesn't break the old build :-)
    
    
    lsm-kbuild.diff
    ===============
    
    The new Makefile.in's. Also protected selinux/selinux_plug.h and
    selinux/ss/global.h from multiple inclusion.
    
    
    mv-files.diff
    =============
    
    I've been working with Keith Owens to add some features to kbuild that were
    needed for SELinux, that's been done (at least it works with the patch he
    sent me this morning). In particular he added support for SELinux's own
    include/asm-$(ARCH) stuff. However the problem of arch/i386/syscalls.c
    still remained. The likelyhood of adding support for that into kbuild is
    close to zero, to work around this I've moved arch/i386/syscalls.c to
    include/asm-i386/syscalls.c
    
    While this diff encompasses this change, the right thing to do is use 
    
        bk mv
    
    to preserve its history, I wasn't sure how to code that in a patch....
    
    
    relocate-files.diff
    ===================
    
    After moving the syscalls.c file, this patch fixes the #includes and the
    old Makefile
    
    
    Because of SELinux's own asm directory, you need to tell the top level make
    that it has another dir in which it needs to make a symlink, this is done
    via.
    
        make -f Makefile-2.5  KBUILD_INCLUDE_PATHS=security/selinux/include
    
    Adding LSM support to kbuild (rather than the other way around) requires
    simply adding a single line to to the top level Makefile.in
    
    --- Makefile.in.pre-rmo Mon Dec 31 07:18:13 2001
    +++ Makefile.in Mon Dec 31 07:21:18 2001
    @@ -39,6 +39,7 @@
     link_subdirs(mm)
     link_subdirs(fs)
     link_subdirs(ipc)
    +link_subdirs(security)
     
     # FIXME: Built from the DRIVERS definitions in the old Makefile.  Some of
    this
     # is just to link intermediate objects into the kernel, some of it is link
    order
    
    
    Happy New Year everyone.
    
    richard.
    
    -- 
    -----------------------------------------------------------------------
    Richard Offer                     Technical Lead, Trust Technology, SGI
    "Specialization is for insects"
    _______________________________________________________________________
    
    
    



    _______________________________________________ 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 : Wed Jan 02 2002 - 11:01:48 PST