Re: How to get full pathname from an inode?

From: Omen Wild (Omen.Wildat_private)
Date: Thu Jul 24 2003 - 10:18:32 PDT

  • Next message: Omen Wild: "Re: How to get full pathname from an inode?"

    Quoting Valdis.Kletnieksat_private <Valdis.Kletnieksat_private> on Thu, Jul 24 13:10:
    >
    > You mean *A* full path name.
    > 
    > % cd /tmp
    > % mkdir a b
    > % touch a/foo   
    > % ln a/foo b/bar
    > % ls -li a/foo b/bar
    >  113549 -rw-r--r--    2 valdis   valdis          0 Jul 24 13:08 a/foo
    >  113549 -rw-r--r--    2 valdis   valdis          0 Jul 24 13:08 b/bar
    > 
    > What does a lookup of inode 113549 return? /tmp/a/foo, or /tmp/b/bar?
    
    Hmmm, does that mean I need to check each of the inodes in the d_alias
    list?  No, that can not be correct because it is the same inode.  
    
    Thanks for pointing this out, I will have to give it more thought.
    
    -- 
    Change is inevitable, except from a vending machine.
    
    
    

    _______________________________________________ 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 Jul 24 2003 - 10:19:26 PDT