Re: Determing the difference between path_walk and chdir ?

From: Chris Wright (chrisat_private)
Date: Tue Sep 25 2001 - 15:40:46 PDT

  • Next message: Crispin Cowan: "Re: Binary only module overview"

    * richard offer (offerat_private) wrote:
    > 
    > 
    > Has anyone any ideas on how to tell the difference between walking the path
    > (which calls permission(MAY_EXEC)) and chdir (which calls
    > permission(MAY_EXEC)) ? Generating bogus chdir events for every path walk
    > seems sub-optimal.
    
    hmm, the chdir case doesn't really seem any different to me than the
    path walk case ;-)
    
    > I was thinking about proposing a new hook in set_fs_pwd and friends, but my
    > proposals haven't met with much success :-)
    
    set_fs_[pwd,root,altroot] do fall within the scope of the current
    hooking paradigm as task_ops hooks, but i sure don't like imposing a
    double check in the code path like that.
    
    -chris
    
    _______________________________________________
    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 : Tue Sep 25 2001 - 15:42:28 PDT