Re: Patch to swapon/swapoff

From: Wayne Salamon (wsalamonat_private)
Date: Thu Nov 15 2001 - 08:07:24 PST

  • Next message: Nick Bellinger: "SECURE_FD OpenWall LSM Patch"

    On Thu, 15 Nov 2001, Lachlan McIlroy wrote:
    
    >
    > We would like to change the dentry parameter to the swapon/swapoff hooks
    > to be a swap_info_struct.  This still provides the dentry but also
    > provides other goodies like the vfsmnt structure.  In order to pass a
    > valid swap_info_struct to the swapoff hook I had to move the hook to
    > later on in the code.  Does anyone have any objections/suggestions?
    >
    > I've attached the patch.
    >
    >
    
      This looks fine for SELinux, although the swapoff case now holds two
    locks during the security call, so LSM implementors need to be aware of
    that.
    
    
    -- 
    Wayne Salamon
    wsalamonat_private
    
    
    _______________________________________________
    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 : Thu Nov 15 2001 - 08:13:41 PST