Re: path_lookup for executable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-11-20 at 04:00 +0000, e m wrote:
> I am trying to get inode for an executable program. For example, I wish to 
> get inode for /usr/jdk/bin/java file in a module. The following call always 
> return an error. Is there a way to get the inode of current process, 
> assuming I have access to "current"


Hi,

what makes you think the current executable has any meaning? It can be
unlinked, renamed or moved in the directory hierarchy since the program
was started... (and if you would go by inode number.. then there's
multiple answers possible)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux