Date: Sun, 20 Feb 2005 19:22:13 +0300 From: Igor Shmukler <shmukler@mail.ru> To: freebsd-hackers@freebsd.org Subject: vn_fullpath() Message-ID: <E1D2tqX-0003GO-00.shmukler-mail-ru@f21.mail.ru>
next in thread | raw e-mail | index | archive | help
Hello, I was wondering if anyone has figured a way to make vn_fullpath() reliable? Perhaps there is another approach to attacking this problem. Here is what I need to accomplish: I need to be able to determine dynamic linker, shared libraries or executable name for a specific process. The alternative to vn_fullpath() is intercepting calls, however I need an interpreter name in case of a script. The problem with name cache is: a. name has to be in the cache b. hardlinks cause vnodes with multiple names This must be a common problem so I was curious whether there is a solution. If anyone has any experience making this work, please advise. Thank you, Igor.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1D2tqX-0003GO-00.shmukler-mail-ru>