Patch for mmap

From: Wayne Salamon (wsalamonat_private)
Date: Mon Jul 16 2001 - 06:53:28 PDT

  • Next message: Jesse Pollard: "Re: Security through Permissiveness: A Zen Riddle?"

       Here's a small patch to fix a bug in the mmap security ops
    call, where the second and third parameters are reversed.
    
    Wayne
    
    -- 
    Wayne Salamon
    wsalamonat_private
    
    
    Index: lsm/mm/mmap.c
    diff -c lsm/mm/mmap.c:1.3 lsm/mm/mmap.c:1.4
    *** lsm/mm/mmap.c:1.3	Thu Jun 21 11:46:47 2001
    --- lsm/mm/mmap.c	Thu Jul 12 13:23:47 2001
    ***************
    *** 292,298 ****
      		}
      	}
      
    ! 	error = security_ops->file_ops->mmap(file, flags, prot);
      	if (error)
      		return error;
      		
    --- 292,298 ----
      		}
      	}
      
    ! 	error = security_ops->file_ops->mmap(file, prot, flags);
      	if (error)
      		return error;
      		
    
    
    
    _______________________________________________
    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 Jul 16 2001 - 06:56:27 PDT