Re: Maintaining LSM modules

From: Greg KH (gregat_private)
Date: Mon Apr 15 2002 - 13:57:53 PDT

  • Next message: Chris Wright: "Re: Maintaining LSM modules"

    On Mon, Apr 15, 2002 at 02:35:30PM -0400, Stephen Smalley wrote:
    > 
    > I don't think that you need to export the dummy functions.  A security
    > module can save a reference to the dummy operations by saving the original
    > security_ops pointer prior to registering itself.  The SELinux module does
    > this as part of its support for stacking with either the dummy or
    > capabilities modules.  See the usage of original_ops and secondary_ops in
    > the SELinux module.  Notice that the SELinux module can always safely call
    > secondary_ops.
    
    Ah, I hadn't looked at that code before, nicely done.
    Nevermind about exporting all of those symbols, you just showed how it
    isn't needed.
    
    thanks,
    
    greg k-h
    _______________________________________________
    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 Apr 15 2002 - 15:00:16 PDT